Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mongo.Database
This creates a new client and sets * it to the value of MongoClient which * can be imported by other packages * * I am not at all sure if this is the best * actually no, even if this is a decent way to do it. * But yea this seems to work * (remember to close the connections!)
Functions ¶
func DisconnectDB ¶
func DisconnectDB()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.