MCPcopy
hub / github.com/grpc/grpc-go / Pick

Method Pick

balancer/balancer.go:333–333  ·  view source on GitHub ↗

Pick returns the connection to use for this RPC and related information. Pick should not block. If the balancer needs to do I/O or any blocking or time-consuming work to service this call, it should return ErrNoSubConnAvailable, and the Pick call will be repeated by gRPC when the Picker is updated

(info PickInfo)

Source from the content-addressed store, hash-verified

331 // ready RPCs will be terminated with this error's Error() string and
332 // status code Unavailable.
333 Pick(info PickInfo) (PickResult, error)
334}
335
336// Balancer takes input from gRPC, manages SubConns, and collects and aggregates

Implementers 15

testingPickerpicker_wrapper_test.go
orcaPickerinterop/orcalb.go
rpcBehaviorPickerinterop/xds/custom_lb.go
pickerbalancer/leastrequest/leastrequest.go
rlsPickerbalancer/rls/picker.go
weightedPickerGroupbalancer/weightedtarget/weightedaggreg
lbCachePickerbalancer/grpclb/grpclb_util.go
rrPickerbalancer/grpclb/grpclb_picker.go
lbPickerbalancer/grpclb/grpclb_picker.go
idlePickerbalancer/lazy/lazy.go
unwrappingPickerbalancer/pickfirst/pickfirst_ext_test.
pickerbalancer/pickfirst/pickfirst.go

Calls

no outgoing calls