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 HandlerFunc
- 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.
func (*Chain) CancelWithRcode ¶ added in v1.1.7
(*Chain).CancelWithRcode cancelWithRcode next calls with rcode.
type HandlerFunc ¶ added in v1.5.0
HandlerFunc type adapter to allow the use of ordinary functions as handlers.
func (HandlerFunc) Name ¶ added in v1.5.0
func (f HandlerFunc) Name() string
(HandlerFunc).Name name returns the handler name.
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.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package hostsfile implements a high-performance hosts file resolver with advanced features like wildcard support and automatic reloading
|
Package hostsfile implements a high-performance hosts file resolver with advanced features like wildcard support and automatic reloading |
|
Package kubernetes - Simple DNS cache
|
Package kubernetes - Simple DNS cache |
|
Package reflex detects DNS amplification/reflection attacks.
|
Package reflex detects DNS amplification/reflection attacks. |
Click to show internal directories.
Click to hide internal directories.