Esempio n. 1
0
// Collection - get the collection for this data model.
func (model *User) Collection() *mgo.Collection {
	db := common.GetDatabase()
	return db.C("users")
}
Esempio n. 2
0
// Collection - get the collection for this data model.
func (model *BuildModel) Collection() *mgo.Collection {
	db := common.GetDatabase()
	return db.C("elasticsearchBuilds")
}