Documentation ¶
Index ¶
- func DeleteRecordsBeforeInterval(db *gorm.DB, obj any, interval time.Duration) error
- func GetRedisSessionStore(client *redis.Client, path string, maxAge int) (*redisstore.RedisStore, error)
- func NewRedisClient(addr string) *redis.Client
- func OpenDatabase(dsn string, logger logger.Interface, opts ...gorm.Option) (*gorm.DB, error)
- func OpenMongoDB(uri string, database string) (*mongo.Database, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisSessionStore ¶
func NewRedisClient ¶
func NewRedisClient(addr string) *redis.Client
func OpenDatabase ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.