Documentation ¶
Index ¶
- Constants
- func GetEnvInt(key string, defaultValue ...int) int
- func GetEnvStr(key string, defaultValue ...string) string
- func GetLogLevel() logrus.Level
- func GetServerVocations() []string
- func Init() error
- type Config
- type DBConfigs
- type GameServerConfigs
- type GlobalConfigs
- type HttpLoginConfigs
- type LoginServerConfigs
- type RateLimiter
- type TcpLoginConfigs
Constants ¶
View Source
const EnvDBHostKey = "DB_HOSTNAME"
View Source
const EnvDBNameKey = "DB_DATABASE"
View Source
const EnvDBPassKey = "DB_PASSWORD"
View Source
const EnvDBPortKey = "DB_PORT"
View Source
const EnvDBUserKey = "DB_USERNAME"
View Source
const EnvLogLevel = "ENV_LOG_LEVEL"
View Source
const EnvLoginHttpPortKey = "LOGIN_HTTP_PORT"
View Source
const EnvLoginIpKey = "LOGIN_IP"
View Source
const EnvLoginTcpPortKey = "LOGIN_TCP_PORT"
View Source
const EnvRateLimiterBurstKey = "RATE_LIMITER_BURST"
View Source
const EnvRateLimiterRateKey = "RATE_LIMITER_RATE"
View Source
const EnvServerIpKey = "SERVER_IP"
View Source
const EnvServerLocationKey = "SERVER_LOCATION"
View Source
const EnvServerNameKey = "SERVER_NAME"
View Source
const EnvServerPortKey = "SERVER_PORT"
View Source
const EnvVocations = "VOCATIONS"
Variables ¶
This section is empty.
Functions ¶
func GetLogLevel ¶
func GetServerVocations ¶
func GetServerVocations() []string
Types ¶
type DBConfigs ¶
func GetDBConfigs ¶
func GetDBConfigs() DBConfigs
func (*DBConfigs) GetConnectionString ¶
type GameServerConfigs ¶
func GetGameServerConfigs ¶
func GetGameServerConfigs() GameServerConfigs
func (*GameServerConfigs) Format ¶
func (gameServerConfigs *GameServerConfigs) Format() string
type GlobalConfigs ¶
type GlobalConfigs struct { DBConfigs DBConfigs GameServerConfigs GameServerConfigs LoginServerConfigs LoginServerConfigs }
func GetGlobalConfigs ¶
func GetGlobalConfigs() GlobalConfigs
func (*GlobalConfigs) Display ¶
func (c *GlobalConfigs) Display()
type HttpLoginConfigs ¶
func GetHttpLoginConfigs ¶
func GetHttpLoginConfigs() HttpLoginConfigs
func (*HttpLoginConfigs) Format ¶
func (httpLoginConfigs *HttpLoginConfigs) Format() string
type LoginServerConfigs ¶
type LoginServerConfigs struct { Http HttpLoginConfigs Tcp TcpLoginConfigs RateLimiter RateLimiter Config }
func GetLoginServerConfigs ¶
func GetLoginServerConfigs() LoginServerConfigs
func (*LoginServerConfigs) Format ¶
func (loginServerConfigs *LoginServerConfigs) Format() string
type RateLimiter ¶
func GetRateLimiterConfigs ¶
func GetRateLimiterConfigs() RateLimiter
func (*RateLimiter) Format ¶
func (rateLimiterConfigs *RateLimiter) Format() string
type TcpLoginConfigs ¶
func GetTcpLoginConfigs ¶
func GetTcpLoginConfigs() TcpLoginConfigs
func (*TcpLoginConfigs) Format ¶
func (tcpLoginConfigs *TcpLoginConfigs) Format() string
Click to show internal directories.
Click to hide internal directories.