Versions in this module Expand all Collapse all v1 v1.0.0 Nov 4, 2022 Changes in this version + func HasNoResolve(params []string) bool + func ParseRule(tp, payload, target string, params []string) (C.Rule, error) + type Domain struct + func NewDomain(domain string, adapter string) *Domain + func (d *Domain) Adapter() string + func (d *Domain) Match(metadata *C.Metadata) bool + func (d *Domain) Payload() string + func (d *Domain) RuleType() C.RuleType + func (d *Domain) ShouldResolveIP() bool + type DomainKeyword struct + func NewDomainKeyword(keyword string, adapter string) *DomainKeyword + func (dk *DomainKeyword) Adapter() string + func (dk *DomainKeyword) Match(metadata *C.Metadata) bool + func (dk *DomainKeyword) Payload() string + func (dk *DomainKeyword) RuleType() C.RuleType + func (dk *DomainKeyword) ShouldResolveIP() bool + type DomainSuffix struct + func NewDomainSuffix(suffix string, adapter string) *DomainSuffix + func (ds *DomainSuffix) Adapter() string + func (ds *DomainSuffix) Match(metadata *C.Metadata) bool + func (ds *DomainSuffix) Payload() string + func (ds *DomainSuffix) RuleType() C.RuleType + func (ds *DomainSuffix) ShouldResolveIP() bool + type GEOIP struct + func NewGEOIP(country string, adapter string, noResolveIP bool) *GEOIP + func (g *GEOIP) Adapter() string + func (g *GEOIP) Match(metadata *C.Metadata) bool + func (g *GEOIP) Payload() string + func (g *GEOIP) RuleType() C.RuleType + func (g *GEOIP) ShouldResolveIP() bool + type IPCIDR struct + func NewIPCIDR(s string, adapter string, opts ...IPCIDROption) (*IPCIDR, error) + func (i *IPCIDR) Adapter() string + func (i *IPCIDR) Match(metadata *C.Metadata) bool + func (i *IPCIDR) Payload() string + func (i *IPCIDR) RuleType() C.RuleType + func (i *IPCIDR) ShouldResolveIP() bool + type IPCIDROption func(*IPCIDR) + func WithIPCIDRNoResolve(noResolve bool) IPCIDROption + func WithIPCIDRSourceIP(b bool) IPCIDROption + type Match struct + func NewMatch(adapter string) *Match + func (f *Match) Adapter() string + func (f *Match) Match(metadata *C.Metadata) bool + func (f *Match) Payload() string + func (f *Match) RuleType() C.RuleType + func (f *Match) ShouldResolveIP() bool + type Port struct + func NewPort(port string, adapter string, isSource bool) (*Port, error) + func (p *Port) Adapter() string + func (p *Port) Match(metadata *C.Metadata) bool + func (p *Port) Payload() string + func (p *Port) RuleType() C.RuleType + func (p *Port) ShouldResolveIP() bool + type Process struct + func NewProcess(process string, adapter string) (*Process, error) + func (ps *Process) Adapter() string + func (ps *Process) Match(metadata *C.Metadata) bool + func (ps *Process) Payload() string + func (ps *Process) RuleType() C.RuleType + func (ps *Process) ShouldResolveIP() bool