Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig() error
Types ¶
type ConfigStruct ¶
type ConfigStruct struct { Server struct { ServerName string `yaml:"serverName"` IP string `yaml:"IP"` Port int `yaml:"port"` IPVersion string `yaml:"IPVersion"` MaxWorkerTaskLen uint32 `yaml:"maxWorkerTaskLen"` WorkerPoolSize uint32 `yaml:"workerPoolSize"` MaxConnSize uint32 `yaml:"maxConnSize"` // 服务器最大连接数 } `yaml:"server"` }
var Config ConfigStruct
Click to show internal directories.
Click to hide internal directories.