Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefreshRaceStats ¶
func RefreshRaceStats() error
RefreshRaceStats updates the race starts, wins etc, but not the expensive stuff
func Repopulate ¶
func Repopulate() error
Repopulate empties the redis cache and get fresh stats from ergast
Types ¶
type Constructor ¶
type Constructor struct { ConstructorID string `json:"constructorId"` URL string `json:"url"` Name string `json:"name"` Nationality string `json:"nationality"` Flag string `json:"flag"` ConTitleCount int `json:"constructors-titles-count"` ConstructorsTitles []string `json:"constructors-titles"` YearsActive []string `json:"years-active"` YearsActiveH string `json:"years-active-human"` RaceStarts int `json:"race-starts"` RaceWins int `json:"race-wins"` WinRate float32 `json:"win-rate"` WinRateH string `json:"win-rate-human"` }
Constructor holds the info about constructors
Click to show internal directories.
Click to hide internal directories.