hosts

package
v5.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL