Documentation ¶
Overview ¶
Package model of kickertool
Index ¶
- Constants
- type Discipline
- type KnockOff
- type Level
- type Model
- type Options
- type Play
- type Player
- type Round
- type Set
- type Sport
- type Team
- type Tournament
- func (t Tournament) EliminationMode() string
- func (t Tournament) IsBYP() bool
- func (t Tournament) IsDYP() bool
- func (t Tournament) IsDouble() bool
- func (t Tournament) IsMonsterDYP() bool
- func (t Tournament) IsSingle() bool
- func (t Tournament) PreliminaryMode() string
- func (t Tournament) TournamentMode() string
Constants ¶
View Source
const ( ModeSwissSystem = "swiss" ModeRounds = "rounds" ModeRoundRobin = "round_robin" ModeMonsterDYP = "monster_dyp" ModeDoubleElimination = "double_elimination" ModeElimination = "elimination" )
Modes
View Source
const ( NameTypeSingle = "single" NameTypeBYP = "byp" NameTypeDYP = "dyp" NameTypeMonsterDYP = "monster_dyp" )
Name Types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KnockOff ¶
type KnockOff struct { Model Levels []Level `json:"levels"` LeftLevels []Level `json:"leftLevels"` Third Level `json:"third"` Options Options `json:"options"` ThirdPlace bool `json:"thirdPlace"` Double bool `json:"double"` Size int `json:"size"` Finished bool `json:"bool"` }
KnockOff .
type Options ¶
type Options struct { Model Name string `json:"name"` NumPoints int `json:"numPoints"` NumSets int `json:"numSets"` TwoAhead bool `json:"twoAhead"` FastInput bool `json:"fastInput"` Draw bool `json:"draw"` PointsWin int `json:"pointsWin"` PointsDraw int `json:"pointsDraw"` }
Options .
type Play ¶
type Play struct { Model Valid bool `json:"valid"` Deactivated bool `json:"deactivated"` Skipped bool `json:"skipped"` TimeStart int `json:"timeStart"` TimeEnd int `json:"timeEnd"` Winner int `json:"winner"` Team1Result int `json:"team1Result"` Team2Result int `json:"team2Result"` Team1 struct { ID string `json:"_id"` Type string `json:"type"` } Team2 struct { ID string `json:"_id"` Type string `json:"type"` } Disciplines []Discipline `json:"disciplines"` }
Play .
type Player ¶
type Player struct { Model Name string `json:"_name"` Removed bool `json:"removed"` Deactivated bool `json:"deactivated"` MarkedForRemoval bool `json:"markedForRemoval"` }
Player .
type Tournament ¶
type Tournament struct { Model Sport Sport `json:"sport"` Name string `json:"name"` Created time.Time `json:"created"` Version string `json:"version"` Mode string `json:"mode"` NameType string `json:"nameType"` Options Options `json:"options"` NumRounds int `json:"numRounds"` Players []Player `json:"players"` Teams []Team `json:"teams"` // for pre-eliminations Rounds []Round `json:"rounds"` // for eliminations KnockOffs []KnockOff `json:"ko"` }
Tournament .
Click to show internal directories.
Click to hide internal directories.