match

package
v1.9.2-0...-23923d4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFinal

func NewFinal(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *final

Types

type DestPort

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

func NewDestPort

func NewDestPort(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *DestPort

func (*DestPort) Action

func (d *DestPort) Action() common.Action

func (*DestPort) LogValue

func (d *DestPort) LogValue() slog.Value

func (*DestPort) MarshalJSON

func (d *DestPort) MarshalJSON() ([]byte, error)

func (*DestPort) Match

func (d *DestPort) Match(metadata *common.Metadata) bool

func (*DestPort) Type

func (d *DestPort) Type() common.RuleType

type Domain

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

func NewDomain

func NewDomain(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *Domain

func (*Domain) Action

func (d *Domain) Action() common.Action

func (*Domain) LogValue

func (d *Domain) LogValue() slog.Value

func (*Domain) MarshalJSON

func (d *Domain) MarshalJSON() ([]byte, error)

func (*Domain) Match

func (d *Domain) Match(metadata *common.Metadata) bool

func (*Domain) Type

func (d *Domain) Type() common.RuleType

type DomainKeyword

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

func NewDomainKeyword

func NewDomainKeyword(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *DomainKeyword

func (*DomainKeyword) Action

func (d *DomainKeyword) Action() common.Action

func (*DomainKeyword) LogValue

func (d *DomainKeyword) LogValue() slog.Value

func (*DomainKeyword) MarshalJSON

func (d *DomainKeyword) MarshalJSON() ([]byte, error)

func (*DomainKeyword) Match

func (d *DomainKeyword) Match(metadata *common.Metadata) bool

func (*DomainKeyword) Type

func (d *DomainKeyword) Type() common.RuleType

type DomainSet

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

func NewDomainSet

func NewDomainSet(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *DomainSet

func (*DomainSet) Action

func (d *DomainSet) Action() common.Action

func (*DomainSet) LogValue

func (d *DomainSet) LogValue() slog.Value

func (*DomainSet) MarshalJSON

func (d *DomainSet) MarshalJSON() ([]byte, error)

func (*DomainSet) Match

func (d *DomainSet) Match(metadata *common.Metadata) bool

func (*DomainSet) Type

func (d *DomainSet) Type() common.RuleType

type DomainSuffix

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

func NewDomainSuffix

func NewDomainSuffix(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *DomainSuffix

func (*DomainSuffix) Action

func (d *DomainSuffix) Action() common.Action

func (*DomainSuffix) LogValue

func (d *DomainSuffix) LogValue() slog.Value

func (*DomainSuffix) MarshalJSON

func (d *DomainSuffix) MarshalJSON() ([]byte, error)

func (*DomainSuffix) Match

func (d *DomainSuffix) Match(metadata *common.Metadata) bool

func (*DomainSuffix) Type

func (d *DomainSuffix) Type() common.RuleType

type HeaderKeyword

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

func NewHeaderKeyword

func NewHeaderKeyword(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *HeaderKeyword

func (*HeaderKeyword) Action

func (h *HeaderKeyword) Action() common.Action

func (*HeaderKeyword) LogValue

func (h *HeaderKeyword) LogValue() slog.Value

func (*HeaderKeyword) MarshalJSON

func (h *HeaderKeyword) MarshalJSON() ([]byte, error)

func (*HeaderKeyword) Match

func (h *HeaderKeyword) Match(metadata *common.Metadata) bool

func (*HeaderKeyword) Type

func (h *HeaderKeyword) Type() common.RuleType

type HeaderRegex

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

func NewHeaderRegex

func NewHeaderRegex(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *HeaderRegex

func (*HeaderRegex) Action

func (h *HeaderRegex) Action() common.Action

func (*HeaderRegex) LogValue

func (h *HeaderRegex) LogValue() slog.Value

func (*HeaderRegex) MarshalJSON

func (h *HeaderRegex) MarshalJSON() ([]byte, error)

func (*HeaderRegex) Match

func (h *HeaderRegex) Match(metadata *common.Metadata) bool

func (*HeaderRegex) Type

func (h *HeaderRegex) Type() common.RuleType

type IPCIDR

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

func NewIPCIDR

func NewIPCIDR(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *IPCIDR

func (*IPCIDR) Action

func (i *IPCIDR) Action() common.Action

func (*IPCIDR) LogValue

func (i *IPCIDR) LogValue() slog.Value

func (*IPCIDR) MarshalJSON

func (i *IPCIDR) MarshalJSON() ([]byte, error)

func (*IPCIDR) Match

func (i *IPCIDR) Match(metadata *common.Metadata) bool

func (*IPCIDR) Type

func (i *IPCIDR) Type() common.RuleType

type SrcIP

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

func NewSrcIP

func NewSrcIP(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *SrcIP

func (*SrcIP) Action

func (s *SrcIP) Action() common.Action

func (*SrcIP) LogValue

func (s *SrcIP) LogValue() slog.Value

func (*SrcIP) MarshalJSON

func (s *SrcIP) MarshalJSON() ([]byte, error)

func (*SrcIP) Match

func (s *SrcIP) Match(metadata *common.Metadata) bool

func (*SrcIP) Type

func (s *SrcIP) Type() common.RuleType

type URLRegex

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

func NewURLRegex

func NewURLRegex(rule *config.Rule, recorder *statistics.Recorder, target common.ActionTarget) *URLRegex

func (*URLRegex) Action

func (h *URLRegex) Action() common.Action

func (*URLRegex) LogValue

func (h *URLRegex) LogValue() slog.Value

func (*URLRegex) MarshalJSON

func (h *URLRegex) MarshalJSON() ([]byte, error)

func (*URLRegex) Match

func (h *URLRegex) Match(metadata *common.Metadata) bool

func (*URLRegex) Type

func (h *URLRegex) Type() common.RuleType

Jump to

Keyboard shortcuts

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