Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectInfo ¶
type ConnectInfo struct { URI string // e.g. redis:6379 Username string Password string DBName string Host string // e.g. redis }
ConnectInfo - the basic form for db config
type Gorm ¶
type Gorm struct { ConnectInfo Dialect string Log bool }
Gorm - the setting config for gorm
func (*Gorm) ConnectURI ¶
ConnectURI combines gorm setting to URI
Click to show internal directories.
Click to hide internal directories.