Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { Addr string // Address where the server listening. // contains filtered or unexported fields }
A Server is an DNS server listening on a system-chosen port on the local loopback interface, for use in end-to-end DNS tests.
func NewServer ¶
func NewServer(f dns.HandlerFunc) *Server
NewServer starts and returns a new Server. The caller should call Close when finished, to shut it down.
Click to show internal directories.
Click to hide internal directories.