Documentation
¶
Index ¶
- func HasNoResolve(params []string) bool
- func ParseRule(tp, payload, target string, params []string) (C.Rule, error)
- type Base
- type Domain
- type DomainKeyword
- type DomainSuffix
- type GEOIP
- type GEOSITE
- type Group
- type IPCIDR
- type IPCIDROption
- type IPSet
- type Match
- type Port
- type PortType
- type Process
- type Script
- type UserAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasNoResolve ¶
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) AppendGroup ¶
func (*Base) RuleGroups ¶
func (*Base) SetRuleExtra ¶
func (*Base) ShouldFindProcess ¶
type Domain ¶
type Domain struct { *Base // contains filtered or unexported fields }
func (*Domain) ShouldResolveIP ¶
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
func (*DomainKeyword) ShouldResolveIP ¶
func (dk *DomainKeyword) ShouldResolveIP() bool
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
func (*DomainSuffix) ShouldResolveIP ¶
func (ds *DomainSuffix) ShouldResolveIP() bool
type GEOIP ¶
type GEOIP struct { *Base // contains filtered or unexported fields }
func (*GEOIP) GetCountry ¶
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) ShouldResolveIP ¶
type Group ¶
type Group struct { *Base // contains filtered or unexported fields }
func (*Group) ShouldResolveIP ¶
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 IPSet ¶
type IPSet struct { *Base // contains filtered or unexported fields }
func (*IPSet) ShouldResolveIP ¶
type Match ¶
type Match struct { *Base // contains filtered or unexported fields }
func (*Match) ShouldResolveIP ¶
type Port ¶
type Port struct { *Base // contains filtered or unexported fields }
func (*Port) ShouldResolveIP ¶
type Process ¶
type Process struct { *Base // contains filtered or unexported fields }
func (*Process) ShouldFindProcess ¶
func (*Process) ShouldResolveIP ¶
type Script ¶
type Script struct { *Base // contains filtered or unexported fields }
func (*Script) SetMatcher ¶
func (*Script) ShouldResolveIP ¶
type UserAgent ¶
type UserAgent struct { *Base // contains filtered or unexported fields }
func (*UserAgent) ShouldResolveIP ¶
Click to show internal directories.
Click to hide internal directories.