Documentation ¶
Overview ¶
Package game will hold the object and associated logic for the Game model.
game.Game will be what everything else game related hangs off of.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertGame ¶
Types ¶
type Game ¶
type Game struct { ID bson.ObjectId `bson:"_id,omitempty"` Name string //The Name of the Game Slug string //The slug used to identify the game in URLs Owner string //The email address of the Game's "owner" Description string //The description of the game provided by its creator Timestamp time.Time //The time that the game was created }
Game is the model that other game related models hang off of.
type Player ¶
type Player struct { ID bson.ObjectId `bson:"_id,omitempty"` GameID bson.ObjectId //The game that this player is connected to. UserID bson.ObjectId //The User that this player is connected to. IsPlayer bool // Is this Player a member of the game, or just a lurker? IsWatching bool // Are they actually watching the game? }
Player acts as a subscription to a given game.
Directories ¶
Path | Synopsis |
---|---|
Package gamehandlers handles game related routes.
|
Package gamehandlers handles game related routes. |
Click to show internal directories.
Click to hide internal directories.