package pickfirstleaf

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

Package pickfirstleaf contains the pick_first load balancing policy which will be the universal leaf policy after dualstack changes are implemented.

Experimental

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

Index

Variables

var (

	// Name is the name of the pick_first_leaf balancer.
	// It is changed to "pick_first" in init() if this balancer is to be
	// registered as the default pickfirst.
	Name = "pick_first_leaf"
)

Functions

func EnableHealthListener

func EnableHealthListener(state resolver.State) resolver.State

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

Source Files

pickfirstleaf.go

Version
v1.69.0
Published
Dec 5, 2024
Platform
linux/amd64
Imports
17 packages
Last checked
21 hours ago

Tools for package owners.