1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00
Files
v2fly/app/router/config/json/json.go

19 lines
344 B
Go
Raw Normal View History

2015-11-14 14:24:56 +01:00
package json
import (
"encoding/json"
)
type RouterConfig struct {
StrategyValue string `json:"strategy"`
SettingsValue json.RawMessage `json:"settings"`
}
func (this *RouterConfig) Strategy() string {
return this.StrategyValue
}
func (this *RouterConfig) Settings() interface{} {
return CreateRouterConfig(this.Strategy())
}