Versions in this module Expand all Collapse all v1 v1.1.2 Dec 10, 2015 v1.1.1 Dec 10, 2015 Changes in this version + type ChinaIPRule struct + func (this *ChinaIPRule) Apply(dest v2net.Destination) bool + type DomainMatcher interface + Match func(domain string) bool + type FieldRule struct + Domain []DomainMatcher + IP []*net.IPNet + Network v2net.NetworkList + Port v2net.PortRange + func (this *FieldRule) Apply(dest v2net.Destination) bool + func (this *FieldRule) UnmarshalJSON(data []byte) error + type PlainDomainMatcher struct + func NewPlainDomainMatcher(pattern string) *PlainDomainMatcher + func (this *PlainDomainMatcher) Match(domain string) bool + type RegexpDomainMatcher struct + func NewRegexpDomainMatcher(pattern string) (*RegexpDomainMatcher, error) + func (this *RegexpDomainMatcher) Match(domain string) bool + type RouterRuleConfig struct + RuleList []json.RawMessage + func (this *RouterRuleConfig) Rules() []rules.Rule + type Rule struct + OutboundTag string + Type string + func (this *Rule) Apply(dest v2net.Destination) bool + func (this *Rule) Tag() string + type StringList []string + func NewStringList(str ...string) *StringList + func (this *StringList) Len() int + func (this *StringList) UnmarshalJSON(data []byte) error