Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MysqlClient *gorm.DB
View Source
var RedisClient *gredis.Redis
Functions ¶
Types ¶
type MysqlConf ¶
type MysqlConf struct { Enable bool `yaml:"enable" json:"enable" mapstructure:"enable"` DataBase string `yaml:"database" json:"database" mapstructure:"database" ` Addr string `yaml:"addr" json:"addr" mapstructure:"addr"` User string `yaml:"user" json:"user" mapstructure:"user"` Password string `yaml:"password" json:"password" mapstructure:"password"` Charset string `yaml:"charset" json:"charset" mapstructure:"charset"` MaxIdleConns int `yaml:"maxIdleConns" json:"maxIdleConns" mapstructure:"maxIdleConns"` MaxOpenConns int `yaml:"maxOpenConns" json:"maxOpenConns" mapstructure:"maxOpenConns"` ConnMaxIdlTime time.Duration `yaml:"maxIdleTime" json:"connMaxIdleTime" mapstructure:"connMaxIdleTime"` ConnMaxLifeTime time.Duration `yaml:"connMaxLifeTime" json:"connMaxLifeTime" mapstructure:"connMaxLifeTime"` ConnTimeOut time.Duration `yaml:"connTimeOut" json:"connTimeOut" mapstructure:"connTimeOut"` WriteTimeOut time.Duration `yaml:"writeTimeOut" json:"writeTimeOut" mapstructure:"writeTimeOut"` ReadTimeOut time.Duration `yaml:"readTimeOut" json:"readTimeOut" mapstructure:"readTimeOut"` ShowLog bool `yaml:"showLog" json:"showLog" mapstructure:"showLog"` }
Click to show internal directories.
Click to hide internal directories.