Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCentrifugoConn ¶
func GetCentrifugoConn() *storage.CentrifugoConfig
func GetDbConn ¶
func GetDbConn() *storage.DatabaseModel
func GetRedisDbConn ¶
func GetRedisDbConn() *storage.RedisModel
func LoadConfig ¶
func LoadConfig(configPath string)
func PathExists ¶
Types ¶
type EnvConf ¶
type EnvConf struct { ConfigPath string ServerInfo *serverModel `yaml:"server"` DatabaseInfo *storage.DatabaseModel `yaml:"database"` RedisInfo *storage.RedisModel `yaml:"redis"` Url *UrlModel `yaml:"url"` Centrifugo *storage.CentrifugoConfig `yaml:"centrifugo"` Crontab *storage.Crontab `yaml:"crontab"` CryptoSettings storage.CryptoSettings `yaml:"crypto_settings"` }
func GetEnvConf ¶
func GetEnvConf() *EnvConf
Click to show internal directories.
Click to hide internal directories.