Documentation ¶
Index ¶
- func HasNoResolve(params []string) bool
- type ASN
- type Base
- type DSCP
- type Domain
- type DomainKeyword
- type DomainRegex
- type DomainSuffix
- type GEOIP
- 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
- type IPCIDR
- type IPCIDROption
- type IPSuffix
- type InName
- type InType
- type InUser
- type Match
- type NetworkType
- type Port
- type Process
- type Uid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasNoResolve ¶
Types ¶
type ASN ¶ added in v1.18.2
type ASN struct { *Base // contains filtered or unexported fields }
func (*ASN) ShouldResolveIP ¶ added in v1.18.2
type DomainKeyword ¶
type DomainKeyword struct { *Base // contains filtered or unexported fields }
func NewDomainKeyword ¶
func NewDomainKeyword(keyword string, adapter string) *DomainKeyword
func (*DomainKeyword) Adapter ¶
func (dk *DomainKeyword) Adapter() string
func (*DomainKeyword) Payload ¶
func (dk *DomainKeyword) Payload() string
func (*DomainKeyword) RuleType ¶
func (dk *DomainKeyword) RuleType() C.RuleType
type DomainRegex ¶ added in v1.18.2
type DomainRegex struct { *Base // contains filtered or unexported fields }
func NewDomainRegex ¶ added in v1.18.2
func NewDomainRegex(regex string, adapter string) (*DomainRegex, error)
func (*DomainRegex) Adapter ¶ added in v1.18.2
func (dr *DomainRegex) Adapter() string
func (*DomainRegex) Match ¶ added in v1.18.2
func (dr *DomainRegex) Match(metadata *C.Metadata) (bool, string)
func (*DomainRegex) Payload ¶ added in v1.18.2
func (dr *DomainRegex) Payload() string
func (*DomainRegex) RuleType ¶ added in v1.18.2
func (dr *DomainRegex) RuleType() C.RuleType
type DomainSuffix ¶
type DomainSuffix struct { *Base // contains filtered or unexported fields }
func NewDomainSuffix ¶
func NewDomainSuffix(suffix string, adapter string) *DomainSuffix
func (*DomainSuffix) Adapter ¶
func (ds *DomainSuffix) Adapter() string
func (*DomainSuffix) Payload ¶
func (ds *DomainSuffix) Payload() string
func (*DomainSuffix) RuleType ¶
func (ds *DomainSuffix) RuleType() C.RuleType
type GEOIP ¶
type GEOIP struct { *Base // contains filtered or unexported fields }
func (*GEOIP) GetCountry ¶
func (*GEOIP) GetIPMatcher ¶
func (g *GEOIP) GetIPMatcher() *router.GeoIPMatcher
func (*GEOIP) GetRecodeSize ¶
func (*GEOIP) ShouldResolveIP ¶
type GEOSITE ¶
type GEOSITE struct { *Base // contains filtered or unexported fields }
func (*GEOSITE) GetDomainMatcher ¶
func (gs *GEOSITE) GetDomainMatcher() router.DomainMatcher
func (*GEOSITE) GetRecodeSize ¶
type IPCIDR ¶
type IPCIDR struct { *Base // contains filtered or unexported fields }
func (*IPCIDR) ShouldResolveIP ¶
type IPCIDROption ¶
type IPCIDROption func(*IPCIDR)
func WithIPCIDRNoResolve ¶
func WithIPCIDRNoResolve(noResolve bool) IPCIDROption
func WithIPCIDRSourceIP ¶
func WithIPCIDRSourceIP(b bool) IPCIDROption
type IPSuffix ¶
type IPSuffix struct { *Base // contains filtered or unexported fields }
func NewIPSuffix ¶
func (*IPSuffix) ShouldResolveIP ¶
type NetworkType ¶
type NetworkType struct { *Base // contains filtered or unexported fields }
func NewNetworkType ¶
func NewNetworkType(network, adapter string) (*NetworkType, error)
func (*NetworkType) Adapter ¶
func (n *NetworkType) Adapter() string
func (*NetworkType) Payload ¶
func (n *NetworkType) Payload() string
func (*NetworkType) RuleType ¶
func (n *NetworkType) RuleType() C.RuleType
type Process ¶
type Process struct { *Base // contains filtered or unexported fields }
func (*Process) ShouldFindProcess ¶
type Uid ¶
type Uid struct { *Base // contains filtered or unexported fields }
func (*Uid) ShouldFindProcess ¶
Click to show internal directories.
Click to hide internal directories.