Versions in this module Expand all Collapse all v0 v0.1.0 Jan 23, 2024 v0.0.2 Jan 23, 2024 Changes in this version + const EnvConfigFilePathKey + const EnvDefaultConfigFilePath + const ServerModeKcp + const ServerModeTcp + 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 + 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()