Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Environment variable keys EnvDBHostKey = "MYSQL_HOST" EnvDBPortKey = "MYSQL_PORT" EnvDBUserKey = "MYSQL_USER" EnvDBPassKey = "MYSQL_PASS" EnvDBNameKey = "MYSQL_DBNAME" // Default values DefaultDBHost = "database" DefaultDBPort = 3306 DefaultDBUser = "canary" DefaultDBPass = "canary" DefaultDBName = "canary" )
View Source
const ( // Environment variable keys EnvServerIpKey = "SERVER_IP" EnvServerLocationKey = "SERVER_LOCATION" EnvServerNameKey = "SERVER_NAME" EnvServerPortKey = "SERVER_PORT" EnvVocations = "VOCATIONS" // Default values DefaultServerIpKey = "127.0.0.1" DefaultServerLocationKey = "AUS" DefaultServerNameKey = "OTServBR-Global" DefaultServerPortKey = 7172 DefaultVocations = "" )
View Source
const ( // Environment variable keys EnvLoginIpKey = "LOGIN_IP" EnvLoginHttpPortKey = "LOGIN_HTTP_PORT" EnvLoginGrpcPortKey = "LOGIN_GRPC_PORT" EnvRateLimiterBurstKey = "RATE_LIMITER_BURST" EnvRateLimiterRateKey = "RATE_LIMITER_RATE" EnvLogLevel = "ENV_LOG_LEVEL" // Default values DefaultLoginIpKey = "0.0.0.0" DefaultLoginHttpPortKey = 80 DefaultLoginGrpcPortKey = 9090 DefaultRateLimiterBurstKey = 5 DefaultRateLimiterRateKey = 2 DefaultLogLevel = "ENV_LOG_LEVEL" )
Variables ¶
This section is empty.
Functions ¶
func GetLogLevel ¶
func GetServerVocations ¶
func GetServerVocations() []string
Types ¶
type DBConfigs ¶
func GetDBConfigs ¶
func GetDBConfigs() DBConfigs
func (*DBConfigs) GetConnectionString ¶
GetConnectionString returns the database connection string
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 GrpcLoginConfigs ¶
func (*GrpcLoginConfigs) Format ¶
func (grpcLoginConfigs *GrpcLoginConfigs) Format() string
type HttpLoginConfigs ¶
func (*HttpLoginConfigs) Format ¶
func (httpLoginConfigs *HttpLoginConfigs) Format() string
type LoginServerConfigs ¶
type LoginServerConfigs struct { Http HttpLoginConfigs Grpc GrpcLoginConfigs 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
Click to show internal directories.
Click to hide internal directories.