Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Server ServerConfig `mapstructure:"server"`
}
Config config
var (
C Config
)
C 全局配置
type ServerConfig ¶
type ServerConfig struct { Listen string `mapstructure:"listen" yaml:"listen"` ClientReadBuf int `mapstructure:"client_read_buf" yaml:"client_read_buf"` ClientWriteBuf int `mapstructure:"client_Write_buf" yaml:"client_Write_buf"` }
ServerConfig 服务配置
Click to show internal directories.
Click to hide internal directories.