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.81.0-dev
Published
Mar 6, 2026
Platform
js/wasm
Imports
21 packages
Last checked
2 hours ago

Tools for package owners.