mirror of https://github.com/v2ray/v2ray-core
v2ray
9 years ago
19 changed files with 60 additions and 54 deletions
@ -1,4 +1,4 @@
|
||||
package config |
||||
package router |
||||
|
||||
type RouterConfig interface { |
||||
Strategy() string |
@ -1,5 +0,0 @@
|
||||
package config |
||||
|
||||
type RouterRuleConfig interface { |
||||
Rules() []Rule |
||||
} |
@ -1,15 +1,15 @@
|
||||
package testing |
||||
|
||||
import ( |
||||
"github.com/v2ray/v2ray-core/app/router/rules/config" |
||||
"github.com/v2ray/v2ray-core/app/router/rules" |
||||
) |
||||
|
||||
type RouterRuleConfig struct { |
||||
RuleList []*TestRule |
||||
} |
||||
|
||||
func (this *RouterRuleConfig) Rules() []config.Rule { |
||||
rules := make([]config.Rule, len(this.RuleList)) |
||||
func (this *RouterRuleConfig) Rules() []rules.Rule { |
||||
rules := make([]rules.Rule, len(this.RuleList)) |
||||
for idx, rule := range this.RuleList { |
||||
rules[idx] = rule |
||||
} |
Loading…
Reference in new issue