Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Competition ¶
type Competition int
const ( NFL Competition = iota CFL NCAA )
func GetCompetitions ¶
func GetCompetitions() []Competition
type Game ¶
type Game struct { Id string Start time.Time Name string Venue Venue Status GameStatus Weather GameWeather HomeTeam TeamScore AwayTeam TeamScore WeekName string Competition Competition }
type GameChange ¶
type GameChange int
const ( NoChanges GameChange = iota NewGame Started Rescheduled HomeScore AwayScore PeriodFinished Finished )
type GameHandler ¶
type GameHandler struct {
// contains filtered or unexported fields
}
func (*GameHandler) GetGames ¶
func (gh *GameHandler) GetGames(c Competition) []Game
func (*GameHandler) GetGamesStartingIn ¶
func (gh *GameHandler) GetGamesStartingIn(c Competition, d time.Duration) []Game
func (*GameHandler) UpdateGamesInformation ¶
func (gh *GameHandler) UpdateGamesInformation(onlyPlaying bool)
func (*GameHandler) UpdateGamesList ¶
func (gh *GameHandler) UpdateGamesList()
type GameInfoClient ¶
type GameInfoClient interface { GetGames(Competition) ([]Game, error) GetGameInformation(Competition, string) (Game, error) }
type GameStatus ¶
type GameWeather ¶
type Handler ¶
type Handler interface { GetGames(c Competition) []Game GetGamesStartingIn(c Competition, d time.Duration) []Game GetGame(id string) (Game, error) UpdateGamesInformation(onlyPlaying bool) UpdateGamesList() }
func NewGameHandler ¶
type VenueAddress ¶
Click to show internal directories.
Click to hide internal directories.