Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListLeagues ¶
func ListLeagues() []string
ListLeagues return an array of available Leagues names
func RegisterLeague ¶
func RegisterLeague(name string, f LeagueFunc)
RegisterLeague set a new League constructor
Types ¶
type League ¶
type League interface {
// Details send informations about the league
Details() map[string]string
// Display will print results on stdout
Display(challengeID string, disciplineID string, levelID string) error
// Challenges retrieve available challenges
Challenges() map[string]string
// Levels retrieve available levels
Levels() map[string]string
// Disciplines retrieve available pelota disciplines
Disciplines() map[string]string
}
League define a pelote league
Click to show internal directories.
Click to hide internal directories.