package pickfirst
Import Path
google.golang.org/grpc/balancer/pickfirst (on go.dev)
Dependency Relation
imports 14 packages, and imported by one package
Involved Source Files
Package pickfirst contains the pick_first load balancing policy.
Package-Level Type Names (total 6, in which 1 is exported)
Shuffler is an interface for shuffling an address list.
( Shuffler) ShuffleAddressListForTesting(n int, swap func(i, j int))
Package-Level Functions (total 2, in which 1 is exported)
ShuffleAddressListForTesting pseudo-randomizes the order of addresses. n
is the number of elements. swap swaps the elements with indexes i and j.
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 2, in which 1 is exported)
Name is the name of the pick_first balancer.
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)