model

package
v1.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionWaiting  = "waiting"
	SessionReady    = "ready"
	SessionPlaying  = "playing"
	SessionFinished = "finished"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GameSession

type GameSession struct {
	ID         primitive.ObjectID `bson:"_id"`
	MapID      string             `bson:"map_id"`
	Status     string             `bson:"status"`
	StartedAt  time.Time          `bson:"started_at"`
	FinishedAt *time.Time         `bson:"finished_at"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL