package
Version:
v1.3.7
Opens a new window with list of versions in this module.
Published: Jun 2, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type MongoTb interface {
Insert(data interface{}) error
Delete(condi interface{}) error
Update(replacement, condi interface{}) error
Upsert(replacement, condi interface{}) error
FindOne(result interface{}, filter interface{}) error
FindALL(result interface{}, filter interface{}) error
}
type RedisDb interface {
Subscribe(topic string, msgFn func(channel, pattern, payload string))
Publish(topic, msg string) (count int64, err error)
}
type SQLDb interface {
CreateTB(models ...interface{}) error
TB(name string) SQLTb
}
type WithConfig interface {
GetConfigMap() map[string]string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.