Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GormOpenDB ¶
开启Gorm数据库
Types ¶
type GormConfig ¶
type MysqlConf ¶
type MysqlConf struct { Debug bool `yaml:"debug" json:"debug"` Port int16 `yaml:"port" json:"port"` MaxIdleConn int16 `yaml:"max_idle_conn" json:"max_idle_conn"` MaxOpenConn int16 `yaml:"max_open_conn" json:"max_open_conn"` UserName string `yaml:"username" json:"user_name"` Password string `yaml:"password" json:"password"` Host string `yaml:"host" json:"host"` DataBase string `yaml:"database" json:"data_base"` }
Click to show internal directories.
Click to hide internal directories.