Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { ID primitive.ObjectID `bson:"_id"` Code string `bson:"code"` CreatedAt time.Time `bson:"created_at"` Player1Name string `bson:"player1_name"` Player2Name string `bson:"player2_name"` Player1Addr string `bson:"player1_addr"` Player2Addr string `bson:"player2_addr"` Moves []string `bson:"moves"` }
type GameModel ¶
type GameModel struct {
DB *mongo.Collection
}
type Model ¶
type Model struct {
Games GameModel
}
func CreateModel ¶
func CreateModel(c1 *mongo.Collection) *Model
Click to show internal directories.
Click to hide internal directories.