Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoDBConfig types.IMongoDB
View Source
var MySQLConfig []types.IMySQL
View Source
var RedisConfig types.IRedis
View Source
var SqLiteConfig *[]*types.SqLite
Functions ¶
func MongoDB ¶
func MongoDB() (disconnectors []func())
MongoDB initializes and returns MongoDB client with connection pooling and retry logic
Types ¶
type SqLiteProvider ¶
type SqLiteProvider struct {
Config *types.SqLite
// debug bool
DSN string
Gorm *gorm.DB
Sql *sql.DB
Mu sync.RWMutex
}
func (*SqLiteProvider) Connect ¶
func (m *SqLiteProvider) Connect()
func (*SqLiteProvider) Disconnect ¶
func (m *SqLiteProvider) Disconnect()
Click to show internal directories.
Click to hide internal directories.