Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBConfig ¶
type DBConfig struct {
URL string `json:"url"`
Driver string `json:"driver"`
SingularTable bool `json:"singularTable"`
LogMode bool `json:"logMode"`
MaxIdleConnection int `json:"maxIdleConnection"`
MaxOpenConnection int `json:"maxOpenConnection"`
}
DBConfig struct
func GetDBConfig ¶
func GetDBConfig() *DBConfig
type RedisConfig ¶
type RedisConfig struct {
Enabled bool `json:"enabled"`
Conn string `json:"conn"`
Password string `json:"password"`
DBNum int `json:"dbNum"`
Timeout int `json:"timeout"`
Sentinel *RedisSentinel `json:"sentinel"`
}
func GetRedisConfig ¶
func GetRedisConfig() *RedisConfig
type RedisSentinel ¶
Click to show internal directories.
Click to hide internal directories.