Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConnectCfg ¶
type DBConnectCfg struct { Enabled bool Driver string // postgres, mysql Address string DBname string User string Password string SSLMode string MaxIdleConns int MaxConns int }
DBConnectCfg database connect configure
type GormClient ¶
type GormClient struct { DbConfig *DBConnectCfg Db *gorm.DB }
GormClient gorm database client
type IGormClient ¶
IGormClient gorm database interface
func NewGormClient ¶
func NewGormClient(cfg *DBConnectCfg) (IGormClient, error)
NewGormClient create gorm database client instance
Click to show internal directories.
Click to hide internal directories.