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

Method SelectConfig

clientconn.go:152–157  ·  view source on GitHub ↗
(rpcInfo iresolver.RPCInfo)

Source from the content-addressed store, hash-verified

150}
151
152func (dcs *defaultConfigSelector) SelectConfig(rpcInfo iresolver.RPCInfo) (*iresolver.RPCConfig, error) {
153 return &iresolver.RPCConfig{
154 Context: rpcInfo.Context,
155 MethodConfig: getMethodConfig(dcs.sc, rpcInfo.Method),
156 }, nil
157}
158
159// NewClient creates a new gRPC "channel" for the target URI provided. No I/O
160// is performed. Use of the ClientConn for RPCs will automatically cause it to

Callers

nothing calls this directly

Calls 1

getMethodConfigFunction · 0.85

Tested by

no test coverage detected