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

Function withDefaultScheme

dialoptions.go:750–754  ·  view source on GitHub ↗

withDefaultScheme is used to allow Dial to use "passthrough" as the default name resolver, while NewClient uses "dns" otherwise.

(s string)

Source from the content-addressed store, hash-verified

748// withDefaultScheme is used to allow Dial to use "passthrough" as the default
749// name resolver, while NewClient uses "dns" otherwise.
750func withDefaultScheme(s string) DialOption {
751 return newFuncDialOption(func(o *dialOptions) {
752 o.defaultScheme = s
753 })
754}
755
756// WithResolvers allows a list of resolver implementations to be registered
757// locally with the ClientConn without needing to be globally registered via

Callers 3

DialContextFunction · 0.85

Calls 1

newFuncDialOptionFunction · 0.85