Documentation ¶ Index ¶ type RouterRuleConfig func (this *RouterRuleConfig) Rules() []rules.Rule type TestRule func (this *TestRule) Apply(dest v2net.Destination) bool func (this *TestRule) Tag() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type RouterRuleConfig ¶ type RouterRuleConfig struct { RuleList []*TestRule } func (*RouterRuleConfig) Rules ¶ func (this *RouterRuleConfig) Rules() []rules.Rule type TestRule ¶ type TestRule struct { Function func(v2net.Destination) bool TagValue string } func (*TestRule) Apply ¶ func (this *TestRule) Apply(dest v2net.Destination) bool func (*TestRule) Tag ¶ func (this *TestRule) Tag() string Source Files ¶ View all Source files router.go rule.go Click to show internal directories. Click to hide internal directories.