Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySqlConfig ¶
type MySqlConfig struct { DNS string `json:"dns"` // Host Port User Password DB build DNS Host string `json:"host"` Port string `json:"port"` User string `json:"user"` Password string `json:"password"` DB string `json:"db"` // Debug开关 Debug bool `json:"debug" yaml:"debug" default:"false"` // 最大空闲连接数 MaxIdleConns int `json:"maxIdleConns" yaml:"maxIdleConns" default:"10"` // 最大活动连接数 MaxOpenConns int `json:"maxOpenConns" yaml:"maxOpenConns" default:"100"` // 连接的最大存活时间 ConnMaxLifetime time.Duration `json:"connMaxLifetime" yaml:"connMaxLifetime" default:"0"` }
Click to show internal directories.
Click to hide internal directories.