Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
GetConfig - Get the connection configuration for the db
returns -- {*.mgo.DialInfo} Dial information for a connection
func GetConnection ¶
GetConnection - Get the connection (session object) singleton
params -- prods {bool} Optional production env config usage
returns -- {*mgo.Session} The session -- {error}
func GetDB ¶
GetDB - Get the database instance
params -- prods {bool} Optional parameter
returns -- {*mgo.Database} Database instance -- {error}
func GetProdConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.