dot

package
v0.0.0-...-e7b131c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(settings ResolverSettings) *net.Resolver

NewResolver creates a DNS over TLS resolver.

Types

type ResolverSettings

type ResolverSettings struct {
	DoTProviders []provider.Provider
	DNSProviders []provider.Provider
	Timeout      time.Duration
	IPv6         bool
}

func (*ResolverSettings) Lines

func (s *ResolverSettings) Lines(indent, subSection string) (lines []string)

func (*ResolverSettings) String

func (s *ResolverSettings) String() string

type Server

type Server interface {
	Run(ctx context.Context, stopped chan<- error)
}

func NewServer

func NewServer(ctx context.Context, logger logging.Logger,
	settings ServerSettings) Server

type ServerSettings

type ServerSettings struct {
	Resolver  ResolverSettings
	Port      uint16
	Cache     cache.Settings
	Blacklist blacklist.Settings
}

func (*ServerSettings) Lines

func (s *ServerSettings) Lines(indent, subSection string) (lines []string)

func (*ServerSettings) String

func (s *ServerSettings) String() string

Directories

Path Synopsis
Package mock_dot is a generated GoMock package.
Package mock_dot is a generated GoMock package.

Jump to

Keyboard shortcuts

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