Versions in this module Expand all Collapse all v0 v0.1.0 Jul 6, 2020 Changes in this version + func IsByeGame(g Game, advance int) bool + func IsByeTeam(t Team) bool + type Arena interface + GetGames func() []Game + GetName func() string + type Competition interface + AddTournament func(name string, tournamentType TournamentType, teams []Team, seeded bool, ...) Tournament + CreateArena func(name string) Arena + GetActiveTournament func() Tournament + GetAllTournaments func() []Tournament + GetArenas func() []Arena + GetName func() string + type Game interface + GetArena func() Arena + GetBracket func() string + GetPlaces func() []int64 + GetScores func() []int64 + GetStatus func() Status + GetTeamPlace func(t Team) int64 + GetTeamScore func(t Team) int64 + GetTeams func() []Team + IsScored func() bool + SetArena func(Arena) + SetBracket func(string) + SetFinal func() + SetPlaces func([]int64) + SetScores func([]int64) + SetStatus func(Status) + Start func() + type Player interface + GetMetadata func() []byte + GetName func() string + GetRecords func() []Game + SetMetadata func([]byte) + type Round interface + CreateGame func(teams []Team, scored bool) Game + GetGames func() []Game + GetStatus func() Status + SetFinal func() + SetStatus func(Status) + Start func() + type Status int32 + const Status_COMPLETED + const Status_NEW + const Status_ONGOING + type StorageEngine interface + CreateCompetition func(name string, players []Player) Competition + CreatePlayer func(name string, metadata []byte) Player + GetCompetitions func() []Competition + GetPlayer func(name string) Player + GetPlayers func() []Player + type Team interface + Equals func(Team) bool + GetMetadata func() []byte + GetName func() string + GetPlayers func() []Player + GetRecords func() []Game + SetMetadata func([]byte) + type Tournament interface + CreateTeam func(name string, players []Player, metadata []byte) Team + GetActiveRound func() Round + GetAdvancing func() uint32 + GetAllRounds func() []Round + GetBracketOrder func() []string + GetGameSize func() uint32 + GetMetadata func() []byte + GetName func() string + GetStatus func() Status + GetTeam func(name string) Team + GetTeams func() []Team + GetType func() TournamentType + IsScored func() bool + IsSeeded func() bool + NextRound func() (Round, error) + SetFinal func() + SetMetadata func([]byte) + SetStatus func(Status) + StartRound func() + type TournamentType int32 + const TournamentType_COMPASS_DRAW + const TournamentType_DOUBLE_ELIMINATION + const TournamentType_GROUP_PLAY + const TournamentType_ROUND_ROBIN + const TournamentType_SINGLE_ELIMINATION + const TournamentType_SWISS_FORMAT