package internal

Import Path
	google.golang.org/grpc/internal/resolver/dns/internal (on go.dev)

Dependency Relation
	imports 4 packages, and imported by one package

Involved Source Files Package internal contains functionality internal to the dns resolver package.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
NetResolver groups the methods on net.Resolver that are used by the DNS resolver implementation. This allows the default net.Resolver instance to be overridden from tests. ( NetResolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) ( NetResolver) LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) ( NetResolver) LookupTXT(ctx context.Context, name string) (txts []string, err error) *net.Resolver
Package-Level Variables (total 7, all are exported)
AddressDialer is the dialer used to dial the DNS server. It accepts the Host portion of the URL corresponding to the user's dial target and returns a dial function.
ErrEndsWithColon is the error returned when building a DNS resolver when the provided target name ends with a colon that is supposed to be the separator between host and port. E.g. "::" is a valid address as it is an IPv6 address (host only) and "[::]:" is invalid as it ends with a colon as the host and port separator
ErrMissingAddr is the error returned when building a DNS resolver when the provided target name is empty.
NewNetResolver returns the net.Resolver instance for the given target.
TimeAfterFunc is used by the DNS resolver to wait for the given duration to elapse. In non-test code, this is implemented by time.After. In test code, this can be used to control the amount of time the resolver is blocked waiting for the duration to elapse.
TimeNowFunc is used by the DNS resolver to get the current time. In non-test code, this is implemented by time.Now. In test code, this can be used to control the current time for the resolver.
TimeUntilFunc is used by the DNS resolver to calculate the remaining wait time for re-resolution. In non-test code, this is implemented by time.Until. In test code, this can be used to control the remaining time for resolver to wait for re-resolution.