package
Version:
v0.0.0-...-d2de476
Opens a new window with list of versions in this module.
Published: Aug 26, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AppConf struct {
Http HttpConf `mapstructure:"http"`
Log LogConf `mapstructure:"log"`
DB DBConf `mapstructure:"db"`
Dst DstConf `mapstructure:"dst"`
}
Load tries to load config file and unmarshal it to *AppConf
type DBConf struct {
Address string `mapstructure:"address"`
User string `mapstructure:"user"`
Password string `mapstructure:"password"`
DataBase string `mapstructure:"database"`
Params string `mapstructure:"params"`
}
type DstConf struct {
SteamKey string `mapstructure:"steamKey"`
KleiToken string `mapstructure:"kleiToken"`
ProxyURL string `mapstructure:"proxyURL"`
Lobby LobbyConf `mapstructure:"lobby"`
}
type HttpConf struct {
Listen string `mapstructure:"listen"`
BasePath string `mapstructure:"base"`
WriteTimeout time.Duration `mapstructure:"writeTimeout"`
ReadTimeout time.Duration `mapstructure:"readTimeout"`
IdleTimeout time.Duration `mapstructure:"idleTimeout"`
CertFile string `mapstructure:"cert"`
KeyFile string `mapstructure:"key"`
CacheTTL time.Duration `mapstructure:"cacheTTL"`
}
type LobbyConf struct {
CollectCron string `mapstructure:"collect"`
ClearCron string `mapstructure:"clear"`
TTL time.Duration `mapstructure:"ttl"`
Timeout time.Duration `mapstructure:"timeout"`
}
type LogConf struct {
File string `mapstructure:"file"`
Level string `mapstructure:"level"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.