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

Method UpdateClientConnState

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

UpdateClientConnState is called by gRPC when the state of the ClientConn changes. If the error returned is ErrBadResolverState, the ClientConn will begin calling ResolveNow on the active name resolver with exponential backoff until a subsequent call to UpdateClientConnState returns a nil error. An

(ClientConnState)

Source from the content-addressed store, hash-verified

348 // exponential backoff until a subsequent call to UpdateClientConnState
349 // returns a nil error. Any other errors are currently ignored.
350 UpdateClientConnState(ClientConnState) error
351 // ResolverError is called by gRPC when the name resolver reports an error.
352 ResolverError(error)
353 // UpdateSubConnState is called by gRPC when the state of a SubConn

Implementers 15

orcabinterop/orcalb.go
leastRequestBalancerbalancer/leastrequest/leastrequest.go
rlsBalancerbalancer/rls/balancer.go
weightedTargetBalancerbalancer/weightedtarget/weightedtarget
lbBalancerbalancer/grpclb/grpclb.go
lazyBalancerbalancer/lazy/lazy.go
pickfirstBalancerbalancer/pickfirst/pickfirst.go
baseBalancerbalancer/base/balancer.go
ringhashBalancerbalancer/ringhash/ringhash.go
wrrBalancerbalancer/weightedroundrobin/balancer.g
endpointShardingbalancer/endpointsharding/endpointshar
testBalancertest/balancer_test.go

Calls

no outgoing calls