Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GORMConf ¶
type GORMConf struct { Type string `json:"Type"` // type of database: mysql, postgres Host string `json:"Host"` // address Port int `json:"Port"` // port Config string `json:"Config"` // extra config such as charset=utf8mb4&parseTime=True DbName string `json:"DBName"` // database name Username string `json:"Username"` // username Password string `json:"Password"` // password MaxIdleConn int `json:"MaxIdleConn"` // the maximum number of connections in the idle connection pool MaxOpenConn int `json:"MaxOpenConn"` // the maximum number of open connections to the database LogMode string `json:"LogMode"` // open gorm's global logger }
func (GORMConf) PostgresDSN ¶
Click to show internal directories.
Click to hide internal directories.