msg_matcher

package
v3.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: GPL-3.0 Imports: 8 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) (bool, error)

func (*AAAAAIPMatcher) MatchMsg

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

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

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

type ClientECSMatcher added in v3.1.0

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

func NewClientECSMatcher added in v3.1.0

func NewClientECSMatcher(ipMatcher netlist.Matcher) *ClientECSMatcher

func (*ClientECSMatcher) Match added in v3.1.0

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

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

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

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

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

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