rules

package
v0.0.0-...-280623b Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

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

func NewDomain

func NewDomain(domain string, adapter string) *Domain

func (*Domain) Adapter

func (d *Domain) Adapter() string

func (*Domain) IsMatch

func (d *Domain) IsMatch(metadata *C.Metadata) bool

func (*Domain) Payload

func (d *Domain) Payload() string

func (*Domain) RuleType

func (d *Domain) RuleType() C.RuleType

type DomainKeyword

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

func NewDomainKeyword

func NewDomainKeyword(keyword string, adapter string) *DomainKeyword

func (*DomainKeyword) Adapter

func (dk *DomainKeyword) Adapter() string

func (*DomainKeyword) IsMatch

func (dk *DomainKeyword) IsMatch(metadata *C.Metadata) bool

func (*DomainKeyword) Payload

func (dk *DomainKeyword) Payload() string

func (*DomainKeyword) RuleType

func (dk *DomainKeyword) RuleType() C.RuleType

type DomainSuffix

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

func NewDomainSuffix

func NewDomainSuffix(suffix string, adapter string) *DomainSuffix

func (*DomainSuffix) Adapter

func (ds *DomainSuffix) Adapter() string

func (*DomainSuffix) IsMatch

func (ds *DomainSuffix) IsMatch(metadata *C.Metadata) bool

func (*DomainSuffix) Payload

func (ds *DomainSuffix) Payload() string

func (*DomainSuffix) RuleType

func (ds *DomainSuffix) RuleType() C.RuleType

type GEOIP

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

func NewGEOIP

func NewGEOIP(country string, adapter string) *GEOIP

func (*GEOIP) Adapter

func (g *GEOIP) Adapter() string

func (*GEOIP) IsMatch

func (g *GEOIP) IsMatch(metadata *C.Metadata) bool

func (*GEOIP) Payload

func (g *GEOIP) Payload() string

func (*GEOIP) RuleType

func (g *GEOIP) RuleType() C.RuleType

type IPCIDR

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

func NewIPCIDR

func NewIPCIDR(s string, adapter string, isSourceIP bool) *IPCIDR

func (*IPCIDR) Adapter

func (i *IPCIDR) Adapter() string

func (*IPCIDR) IsMatch

func (i *IPCIDR) IsMatch(metadata *C.Metadata) bool

func (*IPCIDR) Payload

func (i *IPCIDR) Payload() string

func (*IPCIDR) RuleType

func (i *IPCIDR) RuleType() C.RuleType

type Match

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

func NewMatch

func NewMatch(adapter string) *Match

func (*Match) Adapter

func (f *Match) Adapter() string

func (*Match) IsMatch

func (f *Match) IsMatch(metadata *C.Metadata) bool

func (*Match) Payload

func (f *Match) Payload() string

func (*Match) RuleType

func (f *Match) RuleType() C.RuleType

type Port

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

func NewPort

func NewPort(port string, adapter string, isSource bool) *Port

func (*Port) Adapter

func (p *Port) Adapter() string

func (*Port) IsMatch

func (p *Port) IsMatch(metadata *C.Metadata) bool

func (*Port) Payload

func (p *Port) Payload() string

func (*Port) RuleType

func (p *Port) RuleType() C.RuleType

Jump to

Keyboard shortcuts

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