models

package
v0.0.0-...-519d529 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameInfo

type GameInfo struct {
	GameName    string `json:"gameName" bson:"gameName"`
	ReleaseYear int    `json:"releaseYear" bson:"releaseYear"`
}

type Marathon

type Marathon struct {
	Name       string `json:"name" bson:"name"`
	Runs       []Run  `json:"runs" bson:"runs"`
	RunCount   int    `json:"runCount" bson:"runCount"`
	CurrentRun string `json:"currentRun" bson:"currentRun"`
	IsRunning  bool   `bson:"isRunning"`
}

Marathon represents the general Marathon

type PlayerInfo

type PlayerInfo struct {
	DisplayName string          `json:"displayName" bson:"displayName"`
	Country     string          `json:"country" bson:"country"`
	TwitterName string          `json:"twitterName" bson:"twitterName"`
	TwitchName  string          `json:"twitchName" bson:"twitchName"`
	YoutubeName string          `json:"youtubeName" bson:"youtubeName"`
	Timer       timerPlayerInfo `json:"timer" bson:"timer"`
}

type Run

type Run struct {
	RunID    bson.ObjectId `json:"runID" bson:"_id"`
	GameInfo GameInfo      `json:"gameInfo" bson:"gameInfo"`
	RunInfo  runInfo       `json:"runInfo" bson:"runInfo"`
	Players  []PlayerInfo  `json:"players" bson:"playerInfo"`
}

Run represents a single run

Jump to

Keyboard shortcuts

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