Documentation
¶
Index ¶
- func Err(err error) slog.Attr
- func Less(a, b Node) bool
- type Msgcache
- func (m *Msgcache) Delete(name string) bool
- func (m *Msgcache) Dump()
- func (h *Msgcache) Err(err error) error
- func (m *Msgcache) Evict()
- func (m *Msgcache) Get(name string) (Node, bool)
- func (m *Msgcache) HandlerFunc(next dns.HandlerFunc) dns.HandlerFunc
- func (h *Msgcache) Key() string
- func (m *Msgcache) NodeFound(x *dns.Msg, node Node) *dns.Msg
- func (m *Msgcache) Retrieve(x *dns.Msg) *dns.Msg
- func (m *Msgcache) Set(x *dns.Msg) string
- func (m *Msgcache) Setup(co *dnsserver.Controller) error
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Msgcache ¶
func (*Msgcache) Evict ¶
func (m *Msgcache) Evict()
Evict walks the msgcache and creates a list of maximum 10 items to delete. After the walk host itmes are eviects.
func (*Msgcache) HandlerFunc ¶
func (m *Msgcache) HandlerFunc(next dns.HandlerFunc) dns.HandlerFunc
Click to show internal directories.
Click to hide internal directories.