Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(cfg Config)
Types ¶
type Config ¶
type Config struct { Key string `default:"hello-world"` RemoteAddrs string `default:"0.0.0.0:8080"` Listen string `default:"0.0.0.0:8080"` TransportThreads int `default:"1"` Ip string `default:"10.237.0.1/16"` Mtu int `default:"1500"` // Verbose bool `default:"0"` ServerMode bool `default:"0"` }
func GetInstance ¶
func GetInstance() *Config
Click to show internal directories.
Click to hide internal directories.