Documentation
¶
Index ¶
- func List() (list []string)
- func LoadExternalPlugins()
- func Ready() bool
- func Register(name string, new func(*config.Config) Handler)
- func RegisterAt(name string, new func(*config.Config) Handler, idx int)
- func RegisterBefore(name string, new func(*config.Config) Handler, before string)
- func Setup(cfg *config.Config)
- type Chain
- type Handler
- type ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadExternalPlugins ¶ added in v1.1.0
func LoadExternalPlugins()
LoadExternalPlugins load external plugins into chain
func RegisterAt ¶ added in v1.1.0
RegisterAt a middleware at an index
func RegisterBefore ¶ added in v1.1.0
RegisterBefore a middleware before another middleware
Types ¶
type Chain ¶ added in v1.1.0
type Chain struct {
Writer ResponseWriter
Request *dns.Msg
// contains filtered or unexported fields
}
Chain type
type ResponseWriter ¶ added in v1.1.0
type ResponseWriter interface {
dns.ResponseWriter
Msg() *dns.Msg
Rcode() int
Written() bool
Reset(dns.ResponseWriter)
Proto() string
RemoteIP() net.IP
Internal() bool
}
ResponseWriter implement of dns.ResponseWriter
Click to show internal directories.
Click to hide internal directories.