Versions in this module Expand all Collapse all v1 v1.0.0 Mar 10, 2024 Changes in this version + type DriverInfo struct + Color color.RGBA + HexColor string + Name string + Number int + ShortName string + StartPosition int + Team string + type Drivers struct + Drivers []DriverInfo + Timestamp time.Time + type PitStop struct + Lap int + PitlaneEntry time.Time + PitlaneExit time.Time + PitlaneTime time.Duration type Timing + HexColor string + PitStopTimes []PitStop + PreviousSegmentIndex int v0 v0.9.0 Dec 10, 2022 Changes in this version + const MaxSegments + type CarLocation int + const NoLocation + const OnTrack + const OutLap + const OutOfRace + const PitOut + const Pitlane + const Stopped + func (c CarLocation) String() string + type DRSState int + const DRSDisabled + const DRSEnabled + const DRSUnknown + func (d DRSState) String() string + type Event struct + ClockStopped bool + CurrentLap int + DRSEnabled DRSState + Heartbeat bool + Name string + PitExitOpen bool + RemainingTime time.Duration + SafetyCar TrackState + Sector1Segments int + Sector2Segments int + Sector3Segments int + SegmentFlags [MaxSegments]FlagState + SessionStartTime time.Time + Status SessionState + Timestamp time.Time + TotalLaps int + TotalSegments int + TrackStatus FlagState + Type EventType + type EventTime struct + Remaining time.Duration + Timestamp time.Time + type EventType int + const Practice1 + const Practice2 + const Practice3 + const PreSeason + const Qualifying0 + const Qualifying1 + const Qualifying2 + const Qualifying3 + const Race + const Sprint + func (e EventType) String() string + type FlagState int + const BlackAndWhite + const BlueFlag + const ChequeredFlag + const DoubleYellowFlag + const GreenFlag + const NoFlag + const RedFlag + const YellowFlag + func (f FlagState) String() string + type Location struct + DriverNumber int + Timestamp time.Time + X float64 + Y float64 + Z float64 + type RaceControlMessage struct + Flag FlagState + Msg string + Timestamp time.Time + type Radio struct + Driver string + Msg []byte + Timestamp time.Time + type SegmentType int + const GreenSegment + const InvalidSegment + const Mystery + const Mystery2 + const Mystery3 + const None + const PitlaneSegment + const PurpleSegment + const RedSegment + const YellowSegment + type SessionState int + const Aborted + const Ended + const Finalised + const Finished + const Inactive + const Started + const UnknownState + func (s SessionState) String() string + type SessionType int + const Practice1Session + const Practice2Session + const Practice3Session + const PreSeasonSession + const QualifyingSession + const RaceSession + const SprintSession + func (s SessionType) String() string + type Telemetry struct + Brake float64 + DRS bool + DriverNumber int + Gear float64 + RPM float64 + Speed float64 + Throttle float64 + Timestamp time.Time + type Timing struct + ChequeredFlag bool + Color string + DRSOpen bool + FastestLap time.Duration + GapToLeader time.Duration + KnockedOutOfQualifying bool + Lap int + LapsOnTire int + LastLap time.Duration + LastLapOverallFastest bool + LastLapPersonalFastest bool + Location CarLocation + Name string + Number int + OverallFastestLap bool + Pitstops int + Position int + Sector1 time.Duration + Sector1OverallFastest bool + Sector1PersonalFastest bool + Sector2 time.Duration + Sector2OverallFastest bool + Sector2PersonalFastest bool + Sector3 time.Duration + Sector3OverallFastest bool + Sector3PersonalFastest bool + Segment [MaxSegments]SegmentType + ShortName string + SpeedTrap int + SpeedTrapOverallFastest bool + SpeedTrapPersonalFastest bool + Team string + TimeDiffToFastest time.Duration + TimeDiffToPositionAhead time.Duration + Timestamp time.Time + Tire TireType + type TireType int + const HYPERSOFT + const Hard + const Intermediate + const Medium + const SUPERSOFT + const Soft + const Test + const ULTRASOFT + const Unknown + const Wet + func (t TireType) String() string + type TrackState int + const Clear + const SafetyCar + const SafetyCarEnding + const VirtualSafetyCar + const VirtualSafetyCarEnding + func (t TrackState) String() string + type Weather struct + AirPressure float64 + AirTemp float64 + Humidity float64 + Rainfall bool + Timestamp time.Time + TrackTemp float64 + WindDirection float64 + WindSpeed float64