config

package
v0.0.0-...-0ec8832 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MongoDB      *mongo.Database
	MongoClient  *mongo.Client
	MongoContext context.Context
)
View Source
var SqlDB *gorm.DB

Functions

func BulkMigrate

func BulkMigrate(db *gorm.DB, fdb *mongo.Client, cache *redis.Client)

func CloseMongoDBConnection

func CloseMongoDBConnection(db *mongo.Client)

func GetMongoClient

func GetMongoClient() *mongo.Client

this function should rarely be used. The only times when it should be used is to check client info

func GetMongoDB

func GetMongoDB() *mongo.Database

use this to perform crud

func InitializeServer

func InitializeServer(server *gin.Engine)

func LoadEnv

func LoadEnv()

func SetupMongoDBConnection

func SetupMongoDBConnection() *mongo.Client

func SetupRedisConnection

func SetupRedisConnection() *redis.Client

func SetupSqlDBConnection

func SetupSqlDBConnection() *gorm.DB

func StartupCheck

func StartupCheck() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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