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

Function WithDisableServiceConfig

dialoptions.go:653–657  ·  view source on GitHub ↗

WithDisableServiceConfig returns a DialOption that causes gRPC to ignore any service config provided by the resolver and provides a hint to the resolver to not fetch service configs. Note that this dial option only disables service config from resolver. If default service config is provided, gRPC w

()

Source from the content-addressed store, hash-verified

651// Note that this dial option only disables service config from resolver. If
652// default service config is provided, gRPC will use the default service config.
653func WithDisableServiceConfig() DialOption {
654 return newFuncDialOption(func(o *dialOptions) {
655 o.disableServiceConfig = true
656 })
657}
658
659// WithDefaultServiceConfig returns a DialOption that configures the default
660// service config, which will be used in cases where:

Callers 6

DialFunction · 0.92
mainFunction · 0.92
dialOptsMethod · 0.92

Calls 1

newFuncDialOptionFunction · 0.85