store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

func GetMongoDatabase

func GetMongoDatabase() *mongo.Database

func GetRedisClient

func GetRedisClient() *redis.Client

func GetRedisSessionStore

func GetRedisSessionStore() *redisstore.RedisStore

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.

Jump to

Keyboard shortcuts

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