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

Function newConnectivityStateManager

clientconn.go:583–588  ·  view source on GitHub ↗

newConnectivityStateManager creates an connectivityStateManager with the specified channel.

(ctx context.Context, channel *channelz.Channel)

Source from the content-addressed store, hash-verified

581// newConnectivityStateManager creates an connectivityStateManager with
582// the specified channel.
583func newConnectivityStateManager(ctx context.Context, channel *channelz.Channel) *connectivityStateManager {
584 return &connectivityStateManager{
585 channelz: channel,
586 pubSub: grpcsync.NewPubSub(ctx),
587 }
588}
589
590// connectivityStateManager keeps the connectivity.State of ClientConn.
591// This struct will eventually be exported so the balancers can access it.

Callers 1

NewClientFunction · 0.85

Calls 1

NewPubSubFunction · 0.92

Tested by

no test coverage detected