Documentation ¶
Index ¶
- func NewGRPCPluginResolver(name string, addr string, opts ...plugin.Option) (resolver.Resolver, error)
- func NewHTTPPluginResolver(name string, url string, opts ...plugin.Option) resolver.Resolver
- func NewResolver(nameservers []NameServer, opts ...Option) (resolver.Resolver, error)
- type NameServer
- type Option
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 ¶
NewHTTPPluginResolver creates an Resolver plugin based on HTTP.
func NewResolver ¶
func NewResolver(nameservers []NameServer, opts ...Option) (resolver.Resolver, error)
Types ¶
type NameServer ¶
type Option ¶
type Option func(opts *options)
func DomainOption ¶
func LoggerOption ¶
func PluginConnOption ¶
func PluginConnOption(c *grpc.ClientConn) Option
Click to show internal directories.
Click to hide internal directories.