Documentation ¶
Index ¶
- func LoadAndValidate(w http.ResponseWriter, r *http.Request, l Logger, dst interface{}) (ok bool)
- func Shuffle(data sort.Interface)
- func WriteError(w http.ResponseWriter, l Logger, status int, err error) error
- func WriteJson(w http.ResponseWriter, i interface{}) error
- type ById
- type ByMatchPoints
- type ByTieBreakers
- type Event
- type EventId
- type Logger
- type Match
- type MatchId
- type Player
- type PlayerSlice
- type Record
- type Round
- type RoundId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAndValidate ¶
func WriteError ¶
func WriteJson ¶
func WriteJson(w http.ResponseWriter, i interface{}) error
Types ¶
type ByMatchPoints ¶
type ByMatchPoints struct { MatchPoints map[Player]int PlayerSlice }
func NewByMatchPoints ¶
func NewByMatchPoints(event Event) ByMatchPoints
func (*ByMatchPoints) Less ¶
func (a *ByMatchPoints) Less(i, j int) bool
type ByTieBreakers ¶
type ByTieBreakers struct { MatchPoints map[Player]int MatchWinRates map[Player]float64 GameWinRates map[Player]float64 PlayerSlice }
func NewByTieBreakers ¶
func NewByTieBreakers(event Event) ByTieBreakers
func (*ByTieBreakers) Less ¶
func (a *ByTieBreakers) Less(i, j int) bool
type Event ¶
func (Event) FinalRankings ¶
func (Event) GameWinRates ¶
func (Event) GeneratePairings ¶
func (Event) MatchPoints ¶
func (Event) MatchWinRates ¶
type PlayerSlice ¶
type PlayerSlice []Player
func (PlayerSlice) Len ¶
func (a PlayerSlice) Len() int
func (PlayerSlice) Less ¶
func (a PlayerSlice) Less(i, j int) bool
func (PlayerSlice) Swap ¶
func (a PlayerSlice) Swap(i, j int)
type Record ¶
func (Record) GamesPlayed ¶
Click to show internal directories.
Click to hide internal directories.