package
Version:
v0.0.0-...-ea14be2
Opens a new window with list of versions in this module.
Published: Jul 25, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var Module = fx.Provide(func(cfg *conf.Config, logger *log.Logger) *DataBase {
db = &DataBase{
Master: getConnect(
cfg.MySQLConf.Driver,
cfg.MySQLConf.MasterDsn,
logger,
),
Slave: getConnect(
cfg.MySQLConf.Driver,
cfg.MySQLConf.SlaveDsn,
logger,
),
}
return db
})
type GormLogger struct {
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.