kubernetes/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go

var EnableSRVLookups

var MinResolutionInterval

var ResolvingTimeout

var logger

func init() {}

const defaultPort

const defaultDNSSvrPort

const golang

const txtPrefix

const txtAttribute

var addressDialer

var newNetResolver

// NewBuilder creates a dnsBuilder which is used to factory DNS resolvers.
func NewBuilder() resolver.Builder {}

type dnsBuilder

// Build creates and starts a DNS resolver that watches the name resolution of
// the target.
func (b *dnsBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) {}

// Scheme returns the naming scheme of this resolver builder, which is "dns".
func (b *dnsBuilder) Scheme() string {}

type deadResolver

func (deadResolver) ResolveNow(resolver.ResolveNowOptions) {}

func (deadResolver) Close() {}

type dnsResolver

// ResolveNow invoke an immediate resolution of the target that this
// dnsResolver watches.
func (d *dnsResolver) ResolveNow(resolver.ResolveNowOptions) {}

// Close closes the dnsResolver.
func (d *dnsResolver) Close() {}

func (d *dnsResolver) watcher() {}

func (d *dnsResolver) lookupSRV(ctx context.Context) ([]resolver.Address, error) {}

func handleDNSError(err error, lookupType string) error {}

func (d *dnsResolver) lookupTXT(ctx context.Context) *serviceconfig.ParseResult {}

func (d *dnsResolver) lookupHost(ctx context.Context) ([]resolver.Address, error) {}

func (d *dnsResolver) lookup() (*resolver.State, error) {}

// formatIP returns ok = false if addr is not a valid textual representation of
// an IP address. If addr is an IPv4 address, return the addr and ok = true.
// If addr is an IPv6 address, return the addr enclosed in square brackets and
// ok = true.
func formatIP(addr string) (addrIP string, ok bool) {}

// parseTarget takes the user input target string and default port, returns
// formatted host and port info. If target doesn't specify a port, set the port
// to be the defaultPort. If target is in IPv6 format and host-name is enclosed
// in square brackets, brackets are stripped when setting the host.
// examples:
// target: "www.google.com" defaultPort: "443" returns host: "www.google.com", port: "443"
// target: "ipv4-host:80" defaultPort: "443" returns host: "ipv4-host", port: "80"
// target: "[ipv6-host]" defaultPort: "443" returns host: "ipv6-host", port: "443"
// target: ":80" defaultPort: "443" returns host: "localhost", port: "80"
func parseTarget(target, defaultPort string) (host, port string, err error) {}

type rawChoice

func containsString(a *[]string, b string) bool {}

func chosenByPercentage(a *int) bool {}

func canaryingSC(js string) string {}