Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Row int `json:"row" bson:"row, omitempty"` Col int `json:"col" bson:"col, omitempty"` Mines int `json:"mines" bson:"mines, omitempty"` Type string `json:"name" bson:"name, omitempty"` }
Definition of the configuration object.
type Game ¶
type Game struct { Player User `json:"player" bson:"player, omitempty"` Conf Config `json:"config" bson:"config, omitempty"` Times []Range `json:"times" bson:"times, omitempty"` Score int `json:"score" bson:"score, omitempty"` Won bool `json:"won" bson:"won, omitempty"` Finished bool `json:"finished" bson:"finished, omitempty"` }
Definition of the game object.
type Range ¶
type Range struct { Start time.Time `json:"start" bson:"start, omitempty"` End time.Time `json:"end" bson:"end, omitempty"` }
Definition of the time range object.
Click to show internal directories.
Click to hide internal directories.