storage

package module
v0.1.4-dev Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 11 Imported by: 0

README

storage

Storage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRecordsBeforeInterval

func DeleteRecordsBeforeInterval(db *gorm.DB, obj any, interval time.Duration) error

func GetRedisSessionStore

func GetRedisSessionStore(client *redis.Client, path string, maxAge int) (*redisstore.RedisStore, error)

func NewRedisClient

func NewRedisClient(addr string) *redis.Client

func OpenDatabase

func OpenDatabase(dsn string, logger logger.Interface, opts ...gorm.Option) (*gorm.DB, error)

func OpenMongoDB

func OpenMongoDB(uri string, database string) (*mongo.Database, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL