Documentation ¶ Index ¶ Constants func Init(_ *coremain.BP, args any) (any, error) type Args type Hosts func NewHosts(args *Args) (*Hosts, error) func (h *Hosts) Exec(_ context.Context, qCtx *query_context.Context) error func (h *Hosts) Response(q *dns.Msg) *dns.Msg Constants ¶ View Source const PluginType = "hosts" Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(_ *coremain.BP, args any) (any, error) Types ¶ type Args ¶ type Args struct { Entries []string `yaml:"entries"` Files []string `yaml:"files"` } type Hosts ¶ type Hosts struct { // contains filtered or unexported fields } func NewHosts ¶ func NewHosts(args *Args) (*Hosts, error) func (*Hosts) Exec ¶ func (h *Hosts) Exec(_ context.Context, qCtx *query_context.Context) error func (*Hosts) Response ¶ func (h *Hosts) Response(q *dns.Msg) *dns.Msg Source Files ¶ View all Source files hosts.go Click to show internal directories. Click to hide internal directories.