Versions in this module Expand all Collapse all v1 v1.0.2 Jan 2, 2021 Changes in this version + const DefaultPort + var Directives = []string + var EnableChaos = map[string]struct + var GracefulTimeout time.Duration + var Port = DefaultPort + var Quiet bool + func SplitProtocolHostPort(address string) (protocol string, ip string, port string, err error) + type Config struct + Debug bool + FilterFunc func(string) bool + ListenHosts []string + Plugin []plugin.Plugin + Port string + Root string + TLSConfig *tls.Config + Transport string + 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 + func (d *DoHWriter) LocalAddr() net.Addr + func (d *DoHWriter) RemoteAddr() net.Addr + type Key struct + 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 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)