Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func LoadConfig ¶
func LoadConfig() error
Types ¶
type FlagConfig ¶
type FlagConfig struct {
ConfigFile string `default:"config.json"`
}
type ServerConfig ¶
type ServerConfig struct {
ForwardAddr string //转发地址
RecvPort string `default:":9100"` //接收端口
SendEnabled bool //发
RecvEnabled bool //收
IdleTimeout int //客户端空闲连接超时
RecvTimeout int //服务端连接接收超时
PrintStat bool //打印状态
Debug bool
LogLevel int
AccessLog string
}
var Config *ServerConfig
Click to show internal directories.
Click to hide internal directories.