Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrServerNotRunning = errors.New("server not running") ErrListeningUDPTCPDiffer = errors.New("udp and tcp listening addresses differ") )
View Source
var ( ErrListeningAddressNotValid = errors.New("listening address is not valid") ErrDialerNotSet = errors.New("dialer is not set") )
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListeningAddress ¶
type Settings ¶
type Settings struct { // ListeningAddress is the server listening address, and defaults // to ":53". ListeningAddress *string // Dialer is used to establish connections with upstream resolvers // and must be set. Dialer Dialer // Middlewares is a list of middlewares to use. // The first one is the first wrapper, and the last one // is the last wrapper of the handlers in the chain. Middlewares []Middleware // Logger is the logger to log information. // It defaults to a No-Op logger implementation. Logger Logger }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
func (*Settings) ToLinesNode ¶
Click to show internal directories.
Click to hide internal directories.