Versions in this module Expand all Collapse all v1 v1.0.0 Nov 12, 2023 Changes in this version + func HasNoResolve(params []string) bool + type Base struct + func (b *Base) ShouldFindProcess() bool + func (b *Base) ShouldResolveIP() bool + type Domain struct + func NewDomain(domain string, adapter string) *Domain + func (d *Domain) Adapter() string + func (d *Domain) Match(metadata *C.Metadata) (bool, string) + func (d *Domain) Payload() string + func (d *Domain) RuleType() C.RuleType + type DomainKeyword struct + func NewDomainKeyword(keyword string, adapter string) *DomainKeyword + func (dk *DomainKeyword) Adapter() string + func (dk *DomainKeyword) Match(metadata *C.Metadata) (bool, string) + func (dk *DomainKeyword) Payload() string + func (dk *DomainKeyword) RuleType() C.RuleType + type DomainSuffix struct + func NewDomainSuffix(suffix string, adapter string) *DomainSuffix + func (ds *DomainSuffix) Adapter() string + func (ds *DomainSuffix) Match(metadata *C.Metadata) (bool, string) + func (ds *DomainSuffix) Payload() string + func (ds *DomainSuffix) RuleType() C.RuleType + type GEOIP struct + func NewGEOIP(country string, adapter string, noResolveIP bool) (*GEOIP, error) + func (g *GEOIP) Adapter() string + func (g *GEOIP) GetCountry() string + func (g *GEOIP) GetIPMatcher() *router.GeoIPMatcher + func (g *GEOIP) GetRecodeSize() int + func (g *GEOIP) Match(metadata *C.Metadata) (bool, string) + func (g *GEOIP) Payload() string + func (g *GEOIP) RuleType() C.RuleType + func (g *GEOIP) ShouldResolveIP() bool + type GEOSITE struct + func NewGEOSITE(country string, adapter string) (*GEOSITE, error) + func (gs *GEOSITE) Adapter() string + func (gs *GEOSITE) GetDomainMatcher() *router.DomainMatcher + func (gs *GEOSITE) GetRecodeSize() int + func (gs *GEOSITE) Match(metadata *C.Metadata) (bool, string) + func (gs *GEOSITE) Payload() string + func (gs *GEOSITE) RuleType() C.RuleType + 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, string) + 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 IPSuffix struct + func NewIPSuffix(payload, adapter string, isSrc, noResolveIP bool) (*IPSuffix, error) + func (is *IPSuffix) Adapter() string + func (is *IPSuffix) Match(metadata *C.Metadata) (bool, string) + func (is *IPSuffix) Payload() string + func (is *IPSuffix) RuleType() C.RuleType + func (is *IPSuffix) ShouldResolveIP() bool + type InName struct + func NewInName(iNames, adapter string) (*InName, error) + func (u *InName) Adapter() string + func (u *InName) Match(metadata *C.Metadata) (bool, string) + func (u *InName) Payload() string + func (u *InName) RuleType() C.RuleType + type InType struct + func NewInType(iTypes, adapter string) (*InType, error) + func (u *InType) Adapter() string + func (u *InType) Match(metadata *C.Metadata) (bool, string) + func (u *InType) Payload() string + func (u *InType) RuleType() C.RuleType + type InUser struct + func NewInUser(iUsers, adapter string) (*InUser, error) + func (u *InUser) Adapter() string + func (u *InUser) Match(metadata *C.Metadata) (bool, string) + func (u *InUser) Payload() string + func (u *InUser) RuleType() C.RuleType + type Match struct + func NewMatch(adapter string) *Match + func (f *Match) Adapter() string + func (f *Match) Match(metadata *C.Metadata) (bool, string) + func (f *Match) Payload() string + func (f *Match) RuleType() C.RuleType + type NetworkType struct + func NewNetworkType(network, adapter string) (*NetworkType, error) + func (n *NetworkType) Adapter() string + func (n *NetworkType) Match(metadata *C.Metadata) (bool, string) + func (n *NetworkType) Payload() string + func (n *NetworkType) RuleType() C.RuleType + type Port struct + func NewPort(port string, adapter string, ruleType C.RuleType) (*Port, error) + func (p *Port) Adapter() string + func (p *Port) Match(metadata *C.Metadata) (bool, string) + func (p *Port) Payload() string + func (p *Port) RuleType() C.RuleType + type Process struct + func NewProcess(process string, adapter string, nameOnly bool) (*Process, error) + func (ps *Process) Adapter() string + func (ps *Process) Match(metadata *C.Metadata) (bool, string) + func (ps *Process) Payload() string + func (ps *Process) RuleType() C.RuleType + func (ps *Process) ShouldFindProcess() bool + type Uid struct + func NewUid(oUid, adapter string) (*Uid, error) + func (u *Uid) Adapter() string + func (u *Uid) Match(metadata *C.Metadata) (bool, string) + func (u *Uid) Payload() string + func (u *Uid) RuleType() C.RuleType + func (u *Uid) ShouldFindProcess() bool