Versions in this module Expand all Collapse all v1 v1.1.3 Nov 23, 2021 v1.1.2 Nov 22, 2021 v1.1.1 May 19, 2021 Changes in this version + const EnvLoginGrpcPortKey + type GrpcLoginConfigs struct + Ip string + Port int + func (grpcLoginConfigs *GrpcLoginConfigs) Format() string type LoginServerConfigs + Grpc GrpcLoginConfigs v1.1.0 May 17, 2021 v1.0.3 May 15, 2021 v1.0.2 May 15, 2021 Changes in this version + const EnvDBHostKey + const EnvDBNameKey + const EnvDBPassKey + const EnvDBPortKey + const EnvDBUserKey + const EnvLogLevel + const EnvLoginHttpPortKey + const EnvLoginIpKey + const EnvLoginTcpPortKey + const EnvRateLimiterBurstKey + const EnvRateLimiterRateKey + const EnvServerIpKey + const EnvServerLocationKey + const EnvServerNameKey + const EnvServerPortKey + const EnvVocations + 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 interface + Format func() string + type DBConfigs struct + Host string + Name string + Pass string + Port int + User string + func GetDBConfigs() DBConfigs + func (dbConfigs *DBConfigs) Format() string + func (dbConfigs *DBConfigs) GetConnectionString() string + type GameServerConfigs struct + IP string + Location string + Name string + Port int + func GetGameServerConfigs() GameServerConfigs + func (gameServerConfigs *GameServerConfigs) Format() string + type GlobalConfigs struct + DBConfigs DBConfigs + GameServerConfigs GameServerConfigs + LoginServerConfigs LoginServerConfigs + func GetGlobalConfigs() GlobalConfigs + func (c *GlobalConfigs) Display() + type HttpLoginConfigs struct + Ip string + Port int + func GetHttpLoginConfigs() HttpLoginConfigs + func (httpLoginConfigs *HttpLoginConfigs) Format() string + type LoginServerConfigs struct + Http HttpLoginConfigs + RateLimiter RateLimiter + Tcp TcpLoginConfigs + func GetLoginServerConfigs() LoginServerConfigs + func (loginServerConfigs *LoginServerConfigs) Format() string + type RateLimiter struct + Burst int + Rate rate.Limit + func GetRateLimiterConfigs() RateLimiter + func (rateLimiterConfigs *RateLimiter) Format() string + type TcpLoginConfigs struct + Ip string + Port int + func GetTcpLoginConfigs() TcpLoginConfigs + func (tcpLoginConfigs *TcpLoginConfigs) Format() string