Documentation ¶ Index ¶ func GetDB() *sql.DB type Mysql Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetDB ¶ func GetDB() *sql.DB GetDB 获取db Types ¶ type Mysql ¶ type Mysql struct { URL string `json:"url"` Enable bool `json:"enabled"` MaxIdleConnection int `json:"maxIdleConnection"` MaxOpenConnection int `json:"maxOpenConnection"` ConnMaxLifetime time.Duration `json:"connMaxLifetime"` } Mysql mySQL 配置 Source Files ¶ View all Source files db.go mysql.go Click to show internal directories. Click to hide internal directories.