Documentation ¶
Index ¶
- Variables
- func GetRedis() *_redis.Client
- func Init()
- func InitRedis(selectDB ...int)
- func Paginate(page *int, pageSize *int) func(db *gorm.DB) *gorm.DB
- func Query(searchParams *SearchParams, additionalFilter map[string]any, model interface{}, ...) *gorm.DB
- func QueryOne(searchParams *SearchParams, additionalFilter map[string]any, model interface{}) *gorm.DB
- func ResolveDB() (*gorm.DB, error)
- type SearchParams
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
View Source
var RedisClient *_redis.Client
RedisClient ...
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.