mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-08 17:18:13 -05:00
24 lines
772 B
Go
24 lines
772 B
Go
![]() |
package conf
|
||
|
|
||
|
type Conf struct {
|
||
|
LogConfig *LogConfig `mapstructure:"Log"`
|
||
|
DnsConfigPath string `mapstructure:"DnsConfigPath"`
|
||
|
InboundConfigPath string `mapstructure:"InboundConfigPath"`
|
||
|
OutboundConfigPath string `mapstructure:"OutboundConfigPath"`
|
||
|
RouteConfigPath string `mapstructure:"RouteConfigPath"`
|
||
|
ConnectionConfig *ConnetionConfig `mapstructure:"ConnectionConfig"`
|
||
|
NodesConfig []*NodeConfig `mapstructure:"Nodes"`
|
||
|
}
|
||
|
|
||
|
func New() *Conf {
|
||
|
return &Conf{
|
||
|
LogConfig: NewLogConfig(),
|
||
|
DnsConfigPath: "",
|
||
|
InboundConfigPath: "",
|
||
|
OutboundConfigPath: "",
|
||
|
RouteConfigPath: "",
|
||
|
ConnectionConfig: NewConnetionConfig(),
|
||
|
NodesConfig: []*NodeConfig{},
|
||
|
}
|
||
|
}
|