arbitrary

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgFromRR

func NewMsgFromRR(rrs []RR) *dns.Msg

Types

type Arbitrary

type Arbitrary struct {
	// contains filtered or unexported fields
}

func NewArbitrary

func NewArbitrary() *Arbitrary

func (*Arbitrary) BatchLoad

func (a *Arbitrary) BatchLoad(ss []string) error

func (*Arbitrary) LoadFromFile

func (a *Arbitrary) LoadFromFile(path string) error

func (*Arbitrary) LoadFromReader

func (a *Arbitrary) LoadFromReader(r io.Reader) error

func (*Arbitrary) LoadFromText

func (a *Arbitrary) LoadFromText(s string) error

LoadFromText Text format: pattern qclass qtype section rr...

func (*Arbitrary) Match

func (a *Arbitrary) Match(q *dns.Question) []RR

type RR

type RR struct {
	Section
	RR dns.RR
}

type Section

type Section uint8
const (
	SectionAnswer Section = iota
	SectionNs     Section = iota
	SectionExtra  Section = iota
)

Jump to

Keyboard shortcuts

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