Documentation ¶ Index ¶ type Responses func FromFile(path string) *Responses func FromYAML(y string) *Responses func New() *Responses func Parse(val string) Responses func (r *Responses) Add(query *dns.Msg, response *dns.Msg) func (r Responses) Count() int func (r Responses) Find(query *dns.Msg) *dns.Msg func (r Responses) FindDomains(domain string) []*Rule func (r Responses) YAML() string type Rule Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Responses ¶ type Responses struct { Rules []*Rule `yaml:"rules"` } func FromFile ¶ func FromFile(path string) *Responses func FromYAML ¶ func FromYAML(y string) *Responses func New ¶ func New() *Responses func Parse ¶ func Parse(val string) Responses func (*Responses) Add ¶ func (r *Responses) Add(query *dns.Msg, response *dns.Msg) func (Responses) Count ¶ func (r Responses) Count() int func (Responses) Find ¶ func (r Responses) Find(query *dns.Msg) *dns.Msg func (Responses) FindDomains ¶ func (r Responses) FindDomains(domain string) []*Rule func (Responses) YAML ¶ func (r Responses) YAML() string type Rule ¶ type Rule struct { Name string `yaml:"name"` Records map[string][]string `yaml:"records"` } Source Files ¶ View all Source files spec.go Click to show internal directories. Click to hide internal directories.