Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRuleMatchDropped = errors.New("rule matched dropped")
)
Functions ¶
This section is empty.
Types ¶
type RuleType ¶
type RuleType string
var ( RuleDomain RuleType = "DOMAIN" RuleDomainKeyword RuleType = "DOMAIN-KEYWORD" RuleDomainSuffix RuleType = "DOMAIN-SUFFIX" RuleGeoIP RuleType = "GEOIP" RuleIPCIDR RuleType = "IP-CIDR" RuleOthers RuleType = "OTHERS" IndexToRuleType = []RuleType{ RuleDomain, RuleDomainKeyword, RuleDomainSuffix, RuleGeoIP, RuleIPCIDR, RuleOthers, } )
type Ruler ¶
type Ruler struct { RuleMode MS []Matcher DirectTo string // direct connection strategy for MATCH mode GlobalTo string // global connection strategy for MATCH mode // contains filtered or unexported fields }
var MatchRuler *Ruler
func (*Ruler) Match ¶
Match global/direct/match the target value may be: 1. real ip address -> match 2. fake ip address -> domain name -> match 3. domain name -> match
func (*Ruler) MatcherResult ¶
Click to show internal directories.
Click to hide internal directories.