withDefaultScheme is used to allow Dial to use "passthrough" as the default name resolver, while NewClient uses "dns" otherwise.
(s string)
| 748 | // withDefaultScheme is used to allow Dial to use "passthrough" as the default |
| 749 | // name resolver, while NewClient uses "dns" otherwise. |
| 750 | func 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 |