package pickfirst

import "google.golang.org/grpc/balancer/pickfirst"

Package pickfirst contains the pick_first load balancing policy which is the universal leaf policy.

Index

Constants

const Name = "pick_first"

Name is the name of the pick_first balancer.

Functions

func EnableHealthListener

func EnableHealthListener(state resolver.State) resolver.State

EnableHealthListener updates the state to configure pickfirst for using a generic health listener.

Experimental

Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.

Source Files

pickfirst.go

Directories

PathSynopsis
balancer/pickfirst/internalPackage internal contains code internal to the pickfirst package.
balancer/pickfirst/pickfirstleafPackage pickfirstleaf contains the pick_first load balancing policy which will be the universal leaf policy after dualstack changes are implemented.
Version
v1.82.0-dev
Published
Apr 15, 2026
Platform
windows/amd64
Imports
21 packages
Last checked
22 minutes ago

Tools for package owners.