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

Struct picker

balancer/leastrequest/leastrequest.go:213–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213type picker struct {
214 // choiceCount is the number of random endpoints to sample for choosing the
215 // one with the least requests.
216 choiceCount uint32
217 endpointStates []endpointState
218}
219
220func (p *picker) Pick(pInfo balancer.PickInfo) (balancer.PickResult, error) {
221 var pickedEndpointState *endpointState

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected