package
7.1.0+incompatible
Repository: https://github.com/scalingo/go-utils.git
Documentation: pkg.go.dev
# README
Useful tools around MongoDB
mongo.DefaultDatabaseName = "default-database"
mongo.Session(logger.Default())
Create a new session based on MONGO_URL
, connection will be initialized only
once, so you can call it everytime your need a session.
Will wait until database is available.
If no MONGO_URL
is defined, will use mongodb://localhost:27017/ + DefaultDatabaseName
# Packages
No description provided by the author
# Variables
No description provided by the author