Documentation ¶
Overview ¶
Package database implements functions that connect to Shelves's databases, at the time of writing, is only MongoDB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LogMongoDRV, LogMongoTX = models.ReturnDBLoggers()
)
Functions ¶
func MongoConnect ¶
MongoConnect takes a hostname variable of string type, connects to the MongoDB server, and returns a type of *mgo.Session and a nil error value, if successful.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.