Documentation ¶
Index ¶
- type Client
- type Options
- type Server
- func (s Server) DeleteClient(ip string)
- func (s Server) DeleteTree(id string)
- func (s Server) DeleteTreeAddress(id string, name string)
- func (s Server) GetClient(ip string) *Client
- func (s Server) Listen(addr string, network string) error
- func (s Server) Reply(question dns.Question, client Client) *dns.RR
- func (s Server) ServeDNS(writer dns.ResponseWriter, request *dns.Msg)
- func (s Server) SetClient(ip string, ids []string)
- func (s Server) SetTreeAddress(id string, name string, ip string)
- func (s Server) SetTreeBlock(id string, name string)
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Clients map[string]Client Trees map[string]Tree Options Options DnsClient dns.Client }
func (Server) DeleteClient ¶
func (Server) DeleteTree ¶
func (Server) DeleteTreeAddress ¶
func (Server) SetTreeBlock ¶
Click to show internal directories.
Click to hide internal directories.