msg_matcher

package
Version: v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AAAAAIPMatcher

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

func NewAAAAAIPMatcher

func NewAAAAAIPMatcher(ipMatcher netlist.Matcher) *AAAAAIPMatcher

func (*AAAAAIPMatcher) Match

func (m *AAAAAIPMatcher) Match(_ context.Context, qCtx *handler.Context) (matched bool, _ error)

func (*AAAAAIPMatcher) MatchMsg added in v1.8.4

func (m *AAAAAIPMatcher) MatchMsg(msg *dns.Msg) (matched bool)

type CNameMatcher

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

func NewCNameMatcher

func NewCNameMatcher(domainMatcher domain.Matcher) *CNameMatcher

func (*CNameMatcher) Match

func (m *CNameMatcher) Match(_ context.Context, qCtx *handler.Context) (matched bool, _ error)

func (*CNameMatcher) MatchMsg added in v1.8.4

func (m *CNameMatcher) MatchMsg(msg *dns.Msg) bool

type ClientIPMatcher

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

func NewClientIPMatcher

func NewClientIPMatcher(ipMatcher netlist.Matcher) *ClientIPMatcher

func (*ClientIPMatcher) Match

func (m *ClientIPMatcher) Match(_ context.Context, qCtx *handler.Context) (matched bool, err error)

type QClassMatcher

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

func NewQClassMatcher

func NewQClassMatcher(elemMatcher *elem.IntMatcher) *QClassMatcher

func (*QClassMatcher) Match

func (m *QClassMatcher) Match(_ context.Context, qCtx *handler.Context) (matched bool, _ error)

func (*QClassMatcher) MatchMsg added in v1.8.4

func (m *QClassMatcher) MatchMsg(msg *dns.Msg) bool

type QNameMatcher

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

func NewQNameMatcher

func NewQNameMatcher(domainMatcher domain.Matcher) *QNameMatcher

func (*QNameMatcher) Match

func (m *QNameMatcher) Match(_ context.Context, qCtx *handler.Context) (matched bool, _ error)

func (*QNameMatcher) MatchMsg added in v1.8.4

func (m *QNameMatcher) MatchMsg(msg *dns.Msg) bool

type QTypeMatcher

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

func NewQTypeMatcher

func NewQTypeMatcher(elemMatcher *elem.IntMatcher) *QTypeMatcher

func (*QTypeMatcher) Match

func (m *QTypeMatcher) Match(_ context.Context, qCtx *handler.Context) (matched bool, _ error)

func (*QTypeMatcher) MatchMsg added in v1.8.4

func (m *QTypeMatcher) MatchMsg(msg *dns.Msg) bool

type RCodeMatcher

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

func NewRCodeMatcher

func NewRCodeMatcher(elemMatcher *elem.IntMatcher) *RCodeMatcher

func (*RCodeMatcher) Match

func (m *RCodeMatcher) Match(_ context.Context, qCtx *handler.Context) (matched bool, _ error)

func (*RCodeMatcher) MatchMsg added in v1.8.4

func (m *RCodeMatcher) MatchMsg(msg *dns.Msg) bool

Jump to

Keyboard shortcuts

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