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