Documentation ¶
Index ¶
- type Game
- type Interface
- type MongoDB
- func (mongoDB *MongoDB) GetAllGamesWithoutURL() (results []Game, err error)
- func (mongoDB *MongoDB) GetInt(field string, searchValue int) (result map[string]interface{}, err error)
- func (mongoDB *MongoDB) GetSession() *mgo.Session
- func (mongoDB *MongoDB) SetSession(session *mgo.Session)
- func (mongoDB *MongoDB) UpsertIntField(field string, searchValue int, record interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct { Collection *mgo.Collection // contains filtered or unexported fields }
func (*MongoDB) GetAllGamesWithoutURL ¶
func (*MongoDB) GetSession ¶
func (mongoDB *MongoDB) GetSession() *mgo.Session
func (*MongoDB) SetSession ¶
func (mongoDB *MongoDB) SetSession(session *mgo.Session)
Click to show internal directories.
Click to hide internal directories.