package delegatingresolver
Import Path
google.golang.org/grpc/internal/resolver/delegatingresolver (on go.dev)
Dependency Relation
imports 10 packages, and imported by one package
Involved Source Files
Package delegatingresolver implements a resolver capable of resolving both
target URIs and proxy addresses.
Package-Level Functions (only one)
New creates a new delegating resolver that can create up to two child
resolvers:
- one to resolve the proxy address specified using the supported
environment variables. This uses the registered resolver for the "dns"
scheme. It is lazily built when a target resolver update contains at least
one TCP address.
- one to resolve the target URI using the resolver specified by the scheme
in the target URI or specified by the user using the WithResolvers dial
option. As a special case, if the target URI's scheme is "dns" and a
proxy is specified using the supported environment variables, the target
URI's path portion is used as the resolved address unless target
resolution is enabled using the dial option.
Package-Level Variables (only one)
HTTPSProxyFromEnvironment will be overwritten in the tests
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |