Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Server *ServerConfig `yaml:"server"` MySQL *MySQLConfig `yaml:"mysql"` Redis *RedisConfig `yaml:"redis"` }
var AppCfg *AppConfig
type MySQLConfig ¶
type RedisConfig ¶
type RedisConfig struct { Addr string `yaml:"addr"` Pass string `yaml:"pass"` Db int `yaml:"db"` MaxConn int `yaml:"max-conn"` MinIdle int `yaml:"min-idle"` DialTimeout int `yaml:"dial-timeout"` IdleTimeout int `yaml:"idle-timeout"` MaxRetries int `yaml:"max-retries"` MaxConnAge int `yaml:"max-conn-age"` }
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.