Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { EventType string `json:"f_t"` EventDateSecs EventDateType `json:"event_date"` EventDate time.Time EventTitle string `json:"event_title"` AvgWkg interface{} `json:"avg_wkg"` WkgFtp interface{} `json:"wkg_ftp"` }
Event is a ZwiftPower event
type EventDateType ¶
type EventDateType int64
EventDateType so we can use a custom unmarshaller
func (*EventDateType) UnmarshalJSON ¶
func (e *EventDateType) UnmarshalJSON(data []byte) error
UnmarshalJSON custom because usually EventDateSecs is a number, but sometimes it's an empty string
type Rider ¶
type Rider struct { Name string Zwid int LatestEventDate time.Time Rides int Races int Races90 int Races30 int Ftp90 float64 Ftp60 float64 Ftp30 float64 LatestRace string LatestRaceDate time.Time LatestEvent string LatestRaceAvgWkg float64 LatestRaceWkgFtp float64 }
Rider shows data about a rider
func ImportRider ¶
ImportRider imports data about the rider with this ID
Click to show internal directories.
Click to hide internal directories.