Versions in this module Expand all Collapse all v1 v1.0.0 Apr 1, 2024 Changes in this version + const EnvConfigFilePathKey + const EnvDefaultConfigFilePath + const ServerModeKcp + const ServerModeTcp + const ServerModeUdp + const ServerModeWebsocket + const WorkerModeBind + const WorkerModeHash + func GetConfigFilePath() string + func PathExists(path string) (bool, error) + func UserConfToGlobal(config *Config) + type Config struct + CertFile string + HeartbeatMax int + Host string + IOReadBuffSize uint32 + KcpPort int + LogCons bool + LogDir string + LogFile string + LogFileSize int64 + LogIsolationLevel int + LogSaveDays int + MaxConn int + MaxMsgChanLen uint32 + MaxPacketSize uint32 + MaxWorkerTaskLen uint32 + Mode string + Name string + PrivateKeyFile string + RouterSlicesMode bool + TCPPort int + UdpPort int + Version string + WorkerMode string + WorkerPoolSize uint32 + WsPort int + var GlobalObject *Config + func (g *Config) HeartbeatMaxDuration() time.Duration + func (g *Config) InitLogConfig() + func (g *Config) Reload() + func (g *Config) Show()