Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mongo.Client = ConnectDB()
Client instance
Functions ¶
func EnvMongoDBName ¶
func EnvMongoDBName() string
func EnvMongoPassword ¶
func EnvMongoPassword() string
func EnvMongoURI ¶
func EnvMongoURI() string
func EnvMongoUsername ¶
func EnvMongoUsername() string
func GetCollection ¶
func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
getting database collections
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.