You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
754 B
13 lines
754 B
package config
|
|
|
|
type Mysql struct {
|
|
Path string `mapstructure:"path" json:"path" yaml:"path"`
|
|
Config string `mapstructure:"config" json:"config" yaml:"config"`
|
|
Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"`
|
|
Username string `mapstructure:"username" json:"username" yaml:"username"`
|
|
Password string `mapstructure:"password" json:"password" yaml:"password"`
|
|
MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
|
|
MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"`
|
|
LogMode bool `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"`
|
|
LogZap bool `mapstructure:"log-zap" json:"logZap" yaml:"log-zap"`
|
|
}
|