Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverResult ¶
type ErgastMRData ¶
type ErgastMRData struct {
RaceTable struct {
Season string `json:"season"`
Races []Race `json:"Races"`
} `json:"RaceTable"`
}
Ergast API response structure
type Race ¶
type Race struct {
Season string `json:"season"`
Round string `json:"round"`
RaceName string `json:"raceName"`
Circuit Circuit `json:"Circuit"`
Date string `json:"date"`
Time string `json:"time"`
FirstPractice *Session `json:"FirstPractice,omitempty"`
SecondPractice *Session `json:"SecondPractice,omitempty"`
ThirdPractice *Session `json:"ThirdPractice,omitempty"`
Sprint *Session `json:"Sprint,omitempty"`
SprintShootout *Session `json:"SprintShootout,omitempty"`
Qualifying *Session `json:"Qualifying,omitempty"`
}
type ResultsView ¶
type ResultsView struct {
SessionName string
RaceName string
Results []DriverResult
Loading bool
Error error
}
type SessionRow ¶
Click to show internal directories.
Click to hide internal directories.