Versions in this module Expand all Collapse all v0 v0.1.6 Jul 30, 2018 Changes in this version + func Debug() bool + type DebugConfig struct + Debug bool type GoWorldConfig + Debug DebugConfig v0.1.5 Jun 18, 2018 v0.1.4 Jun 17, 2018 Changes in this version + func GetGamesNum() int + func GetGatesNum() int v0.1.3 May 30, 2018 Changes in this version type GameConfig + BanBootEntity bool type KVDBConfig + StartNodes common.StringSet type StorageConfig + StartNodes common.StringSet v0.1.2 Feb 11, 2018 Changes in this version + func GetConfigFilePath() string + func GetDispatcherIDs() []uint16 type GameConfig + PositionSyncIntervalMS int type GateConfig + PositionSyncIntervalMS int type GoWorldConfig + DispatcherCommon DispatcherConfig + Dispatchers map[int]*DispatcherConfig v0.1.1 Dec 4, 2017 v0.1.0 Oct 25, 2017 Changes in this version + func DumpPretty(cfg interface{}) string + func GetConfigDir() string + func GetGameIDs() []uint16 + func GetGateIDs() []uint16 + func SetConfigFile(f string) + type DispatcherConfig struct + BindIp string + BindPort int + HTTPIp string + HTTPPort int + Ip string + LogFile string + LogLevel string + LogStderr bool + Port int + func GetDispatcher() *DispatcherConfig + type GameConfig struct + BootEntity string + GoMaxProcs int + HTTPIp string + HTTPPort int + LogFile string + LogLevel string + LogStderr bool + SaveInterval time.Duration + func GetGame(gameid uint16) *GameConfig + type GateConfig struct + CompressConnection bool + CompressFormat string + EncryptConnection bool + GoMaxProcs int + HTTPIp string + HTTPPort int + HeartbeatCheckInterval int + Ip string + LogFile string + LogLevel string + LogStderr bool + Port int + RSACertificate string + RSAKey string + func GetGate(gateid uint16) *GateConfig + type GoWorldConfig struct + Dispatcher DispatcherConfig + GameCommon GameConfig + Games map[int]*GameConfig + GateCommon GateConfig + Gates map[int]*GateConfig + KVDB KVDBConfig + Storage StorageConfig + func Get() *GoWorldConfig + func Reload() *GoWorldConfig + type KVDBConfig struct + Collection string + DB string + Driver string + Type string + Url string + func GetKVDB() *KVDBConfig + type StorageConfig struct + DB string + Directory string + Driver string + Type string + Url string + func GetStorage() *StorageConfig