Documentation ¶
Index ¶
Constants ¶
View Source
const DBWTimeout = 5000 //5 Seconds
DBWTimeout ... Milliseconds to wait for db server before timing out
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database ... Database model
func CreateDatabase ¶
CreateDatabase ... Create single instance of the database
func (*Database) GetSession ¶
func (database *Database) GetSession() (*mgo.Database, *mgo.Session)
GetSession ... Return the mongo db and session
Click to show internal directories.
Click to hide internal directories.