Documentation ¶ Index ¶ func CloseDB() func GetDB() *gorm.DB type Mysql Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CloseDB ¶ func CloseDB() func GetDB ¶ func GetDB() *gorm.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"` } Mysql mySQL 配置 Source Files ¶ View all Source files db.go mysql.go Click to show internal directories. Click to hide internal directories.