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

Method NewSubConn

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

NewSubConn is called by balancer to create a new SubConn. It doesn't block and wait for the connections to be established. Behaviors of the SubConn can be controlled by options. Deprecated: please be aware that in a future version, SubConns will only support one address per SubConn.

([]resolver.Address, NewSubConnOptions)

Source from the content-addressed store, hash-verified

144 // Deprecated: please be aware that in a future version, SubConns will only
145 // support one address per SubConn.
146 NewSubConn([]resolver.Address, NewSubConnOptions) (SubConn, error)
147 // RemoveSubConn removes the SubConn from ClientConn.
148 // The SubConn will be shutdown.
149 //

Callers 15

NewSubConnMethod · 0.65
NewSubConnMethod · 0.65
NewSubConnMethod · 0.65
initFunction · 0.65
NewSubConnMethod · 0.65
refreshSubConnsMethod · 0.65

Calls

no outgoing calls