Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is a caching DNS proxy that upgrades DNS to DNS over TLS.
func NewServer ¶
func NewServer(mux *dns.ServeMux, log *log.Logger, cacheSize int, evictMetrics bool, minTTL int, addr string, upstreamServers ...string) *Server
NewServer constructs a new server but does not start it, use Run to start it afterwards. Calling New(0) is valid and comes with working defaults: * If cacheSize is 0 a default value will be used. to disable caches use a negative value. * If no upstream servers are specified default ones will be used.
func (*Server) DebugHandler ¶
DebugHandler returns an http.Handler that serves debug stats.
func (*Server) Run ¶
Run runs the server. The server will gracefully shutdown when context is canceled.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
specialized
This example demonstrates a priority queue built using the heap interface.
|
This example demonstrates a priority queue built using the heap interface. |
Click to show internal directories.
Click to hide internal directories.