Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenerCfg ¶
type ListenerCfg struct {
// Address to listen on, ":dns" if empty.
Addr string
// if "tcp" or "tcp-tls" (DNS over TLS) it will invoke a TCP listener, otherwise an UDP one
Net string
// The net.Conn.SetReadTimeout value for new connections, defaults to 2 * time.Second.
ReadTimeout time.Duration
// The net.Conn.SetWriteTimeout value for new connections, defaults to 2 * time.Second.
WriteTimeout time.Duration
}
type Option ¶
type Option func(*Server)
func WithListener ¶
func WithListener(cfg ListenerCfg) Option
func WithMaxRequests ¶
func WithRouter ¶
Click to show internal directories.
Click to hide internal directories.