Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { ID bson.ObjectId `bson:"_id"` FirstPlayer mgo.DBRef `bson:"firstPlayer"` SecondPlayer mgo.DBRef `bson:"secondPlayer,omitempty"` StartingPlayer mgo.DBRef `bson:"startingPlayer,omitempty"` Winner mgo.DBRef `bson:"winner,omitempty"` CreateDate time.Time `bson:"createDate"` StartDate time.Time `bson:"startDate,omitempty"` EndDate time.Time `bson:"endDate,omitempty"` TurnCount int `bson:"turnCount"` }
type Turn ¶
type Turn struct { ID bson.ObjectId `bson:"_id"` Game mgo.DBRef `bson:"game"` Player mgo.DBRef `bson:"player"` Position int `bson:"position"` PositionInField int `bson:"positionInField"` Field int `bson:"field"` NextField int `bson:"nextField"` RandomField bool `bson:"randomField"` TurnCount int `bson:"turnCount"` WonField bool `bson:"wonField"` WonGame bool `bson:"wonGame"` CreateDate time.Time `bson:"createDate"` }
Click to show internal directories.
Click to hide internal directories.