Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GormDB *gorm.DB
)
Functions ¶
Types ¶
type ConnCfg ¶
type ConnCfg struct { Host string `json:"host"` Port string `json:"port"` DBName string `json:"db_name"` UserName string `json:"user_name"` Password string `json:"password"` MaxLifeTime int `json:"max_life_time"` MaxIdleTime int `json:"max_idle_time"` MaxIdleConns int `json:"max_idle_conns"` MaxOpenConns int `json:"max_open_conns"` }
Click to show internal directories.
Click to hide internal directories.