resolver

package
v0.0.0-...-b4268f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCPluginResolver

func NewGRPCPluginResolver(name string, addr string, opts ...plugin.Option) (resolver.Resolver, error)

NewGRPCPluginResolver creates a Resolver plugin based on gRPC.

func NewHTTPPluginResolver

func NewHTTPPluginResolver(name string, url string, opts ...plugin.Option) resolver.Resolver

NewHTTPPluginResolver creates an Resolver plugin based on HTTP.

func NewResolver

func NewResolver(nameservers []NameServer, opts ...Option) (resolver.Resolver, error)

Types

type NameServer

type NameServer struct {
	Addr     string
	Chain    chain.Chainer
	TTL      time.Duration
	Timeout  time.Duration
	ClientIP net.IP
	Prefer   string
	Hostname string // for TLS handshake verification
	// contains filtered or unexported fields
}

type Option

type Option func(opts *options)

func DomainOption

func DomainOption(domain string) Option

func LoggerOption

func LoggerOption(logger logger.Logger) Option

func PluginConnOption

func PluginConnOption(c *grpc.ClientConn) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL