Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDataBase ¶
func ShowDataBase ¶
func ShowDataBase()
Types ¶
type Config ¶
type Config struct {
Name string `mapstructure:"name"` // 连接名称
Host string `mapstructure:"host"` // 主机地址
Port int `mapstructure:"port"` // 连接端口号
DB string `mapstructure:"db"` // 数据库名称
User string `mapstructure:"user"` // 用户名
Password string `mapstructure:"password"` // 密码
MaxIDLE int `mapstructure:"max_idle"` // 最大空闲数
MaxOpen int `mapstructure:"max_open"` // 最大连接数
Timeout int `mapstructure:"timeout"` // 连接超时
}
Click to show internal directories.
Click to hide internal directories.