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

Function WithDefaultCallOptions

dialoptions.go:274–278  ·  view source on GitHub ↗

WithDefaultCallOptions returns a DialOption which sets the default CallOptions for calls over the connection.

(cos ...CallOption)

Source from the content-addressed store, hash-verified

272// WithDefaultCallOptions returns a DialOption which sets the default
273// CallOptions for calls over the connection.
274func WithDefaultCallOptions(cos ...CallOption) DialOption {
275 return newFuncDialOption(func(o *dialOptions) {
276 o.callOptions = append(o.callOptions, cos...)
277 })
278}
279
280// WithCodec returns a DialOption which sets a codec for message marshaling and
281// unmarshaling.

Callers 11

makeClientsFunction · 0.92
createConnsFunction · 0.92
TestRetryStreamingMethod · 0.92
configDialMethod · 0.92
TestStreamCleanupMethod · 0.92
newClientFunction · 0.92
BuildMethod · 0.92
BuildMethod · 0.92
WithMaxMsgSizeFunction · 0.85
WithCodecFunction · 0.85

Calls 1

newFuncDialOptionFunction · 0.85

Tested by 5

TestRetryStreamingMethod · 0.74
configDialMethod · 0.74
TestStreamCleanupMethod · 0.74
BuildMethod · 0.74