Documentation ¶
Index ¶
- func GetDB() *gorm.DB
- func GetMongoDatabase() *mongo.Database
- func GetRedisClient() *redis.Client
- func GetRedisSessionStore() *redisstore.RedisStore
- 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 GetMongoDatabase ¶
func GetRedisClient ¶
func GetRedisClient() *redis.Client
func GetRedisSessionStore ¶
func GetRedisSessionStore() *redisstore.RedisStore
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.