mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-08-16 04:27:25 +00:00
19 lines
344 B
Go
19 lines
344 B
Go
![]() |
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())
|
||
|
}
|