Documentation ¶
Index ¶
- Variables
- func BulkMigrate(db *gorm.DB, fdb *mongo.Client, cache *redis.Client)
- func CloseMongoDBConnection(db *mongo.Client)
- func GetMongoClient() *mongo.Client
- func GetMongoDB() *mongo.Database
- func InitializeServer(server *gin.Engine)
- func LoadEnv()
- func SetupMongoDBConnection() *mongo.Client
- func SetupRedisConnection() *redis.Client
- func SetupSqlDBConnection() *gorm.DB
- func StartupCheck() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var SqlDB *gorm.DB
Functions ¶
func CloseMongoDBConnection ¶
func GetMongoClient ¶
this function should rarely be used. The only times when it should be used is to check client info
func InitializeServer ¶
func SetupMongoDBConnection ¶
func SetupRedisConnection ¶
func SetupRedisConnection() *redis.Client
func SetupSqlDBConnection ¶
func StartupCheck ¶
func StartupCheck() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.