Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *mongo.Client = DBinstance()
Client Database instance
Functions ¶
func OpenCollection ¶
func OpenCollection(client *mongo.Client, collectionName string) *mongo.Collection
OpenCollection is a function makes a connection with a collection in the database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.