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

Struct baseBalancer

balancer/base/balancer.go:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61type baseBalancer struct {
62 cc balancer.ClientConn
63 pickerBuilder PickerBuilder
64
65 csEvltr *balancer.ConnectivityStateEvaluator
66 state connectivity.State
67
68 subConns *resolver.AddressMapV2[balancer.SubConn]
69 scStates map[balancer.SubConn]connectivity.State
70 picker balancer.Picker
71 config Config
72
73 resolverErr error // the last error reported by the resolver; cleared on successful resolution
74 connErr error // the last connection error; cleared upon leaving TransientFailure
75}
76
77func (b *baseBalancer) ResolverError(err error) {
78 b.resolverErr = err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected