Versions in this module Expand all Collapse all v1 v1.11.1 Mar 21, 2024 Changes in this version + const DefaultPort + const DoQCodeInternalError + const DoQCodeNoError + const DoQCodeProtocolError + var Directives = []string + var EnableChaos = map[string]struct + var GracefulTimeout time.Duration + var Port = DefaultPort + var Quiet bool + func AddPrefix(b []byte) (m []byte) + func SplitProtocolHostPort(address string) (protocol string, ip string, port string, err error) + type Config struct + Debug bool + FilterFuncs []FilterFunc + HTTPRequestValidateFunc func(*http.Request) bool + IdleTimeout time.Duration + ListenHosts []string + Plugin []plugin.Plugin + Port string + ReadTimeout time.Duration + Root string + Stacktrace bool + TLSConfig *tls.Config + Transport string + TsigSecret map[string]string + ViewName string + WriteTimeout time.Duration + Zone string + func GetConfig(c *caddy.Controller) *Config + func (c *Config) AddPlugin(m plugin.Plugin) + func (c *Config) Handler(name string) plugin.Handler + func (c *Config) Handlers() []plugin.Handler + type DoHWriter struct + Msg *dns.Msg + func (d *DoHWriter) Close() error + func (d *DoHWriter) Hijack() + func (d *DoHWriter) LocalAddr() net.Addr + func (d *DoHWriter) RemoteAddr() net.Addr + func (d *DoHWriter) Request() *http.Request + func (d *DoHWriter) TsigStatus() error + func (d *DoHWriter) TsigTimersOnly(_ bool) + func (d *DoHWriter) Write(b []byte) (int, error) + func (d *DoHWriter) WriteMsg(m *dns.Msg) error + type DoQWriter struct + Msg *dns.Msg + func (w *DoQWriter) Close() error + func (w *DoQWriter) Hijack() + func (w *DoQWriter) LocalAddr() net.Addr + func (w *DoQWriter) RemoteAddr() net.Addr + func (w *DoQWriter) TsigStatus() error + func (w *DoQWriter) TsigTimersOnly(b bool) + func (w *DoQWriter) Write(b []byte) (int, error) + func (w *DoQWriter) WriteMsg(m *dns.Msg) error + type FilterFunc func(context.Context, *request.Request) bool + type HTTPRequestKey struct + type Key struct + type LoopKey struct + type MetadataCollector interface + Collect func(context.Context, request.Request) context.Context + type Server struct + Addr string + func NewServer(addr string, group []*Config) (*Server, error) + func (s *Server) Address() string + func (s *Server) Listen() (net.Listener, error) + func (s *Server) ListenPacket() (net.PacketConn, error) + func (s *Server) OnStartupComplete() + func (s *Server) Serve(l net.Listener) error + func (s *Server) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) + func (s *Server) ServePacket(p net.PacketConn) error + func (s *Server) Stop() (err error) + func (s *Server) Tracer() ot.Tracer + func (s *Server) WrapListener(ln net.Listener) net.Listener + type ServerHTTPS struct + func NewServerHTTPS(addr string, group []*Config) (*ServerHTTPS, error) + func (s *ServerHTTPS) Listen() (net.Listener, error) + func (s *ServerHTTPS) ListenPacket() (net.PacketConn, error) + func (s *ServerHTTPS) OnStartupComplete() + func (s *ServerHTTPS) Serve(l net.Listener) error + func (s *ServerHTTPS) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *ServerHTTPS) ServePacket(p net.PacketConn) error + func (s *ServerHTTPS) Shutdown() error + func (s *ServerHTTPS) Stop() error + type ServerQUIC struct + func NewServerQUIC(addr string, group []*Config) (*ServerQUIC, error) + func (s *ServerQUIC) Listen() (net.Listener, error) + func (s *ServerQUIC) ListenPacket() (net.PacketConn, error) + func (s *ServerQUIC) OnStartupComplete() + func (s *ServerQUIC) Serve(l net.Listener) error + func (s *ServerQUIC) ServePacket(p net.PacketConn) error + func (s *ServerQUIC) ServeQUIC() error + func (s *ServerQUIC) Stop() error + type ServerTLS struct + func NewServerTLS(addr string, group []*Config) (*ServerTLS, error) + func (s *ServerTLS) Listen() (net.Listener, error) + func (s *ServerTLS) ListenPacket() (net.PacketConn, error) + func (s *ServerTLS) OnStartupComplete() + func (s *ServerTLS) Serve(l net.Listener) error + func (s *ServerTLS) ServePacket(p net.PacketConn) error + type ServergRPC struct + func NewServergRPC(addr string, group []*Config) (*ServergRPC, error) + func (s *ServergRPC) Listen() (net.Listener, error) + func (s *ServergRPC) ListenPacket() (net.PacketConn, error) + func (s *ServergRPC) OnStartupComplete() + func (s *ServergRPC) Query(ctx context.Context, in *pb.DnsPacket) (*pb.DnsPacket, error) + func (s *ServergRPC) Serve(l net.Listener) error + func (s *ServergRPC) ServePacket(p net.PacketConn) error + func (s *ServergRPC) Shutdown() error + func (s *ServergRPC) Stop() (err error) + type ViewKey struct + type Viewer interface + Filter func(ctx context.Context, req *request.Request) bool + ViewName func() string