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

Function NewErrPicker

balancer/base/balancer.go:245–247  ·  view source on GitHub ↗

NewErrPicker returns a Picker that always returns err on Pick().

(err error)

Source from the content-addressed store, hash-verified

243
244// NewErrPicker returns a Picker that always returns err on Pick().
245func NewErrPicker(err error) balancer.Picker {
246 return &errPicker{err: err}
247}
248
249// NewErrPickerV2 is temporarily defined for backward compatibility reasons.
250//

Callers 15

applyFailingLBLockedMethod · 0.92
newChildPolicyWrapperFunction · 0.92
lamifyMethod · 0.92
AddMethod · 0.92
clearStatesMethod · 0.92
buildMethod · 0.92
BuildMethod · 0.92
regeneratePickerMethod · 0.92
updatePickerLockedMethod · 0.92
updateStateMethod · 0.92
TestPickerStatusCodesMethod · 0.92
TestSubConnEmptyMethod · 0.92

Calls

no outgoing calls