Documentation ¶
Index ¶
- type AnalysisCarComputeState
- type AnalysisCarInfo
- type AnalysisCarLaps
- type AnalysisCarPits
- type AnalysisCarStints
- type AnalysisData
- type AnalysisDataGeneric
- type AnalysisDriverInfo
- type AnalysisGapInfo
- type AnalysisLapInfo
- type AnalysisMessage
- type AnalysisPitInfo
- type AnalysisRaceGraph
- type AnalysisSeatTime
- type AnalysisStintInfo
- type AvgLapOverTime
- type Car
- type CarClass
- type CarData
- type CarEntry
- type CarInfo
- type CarPayload
- type ClassSpeedmapData
- type DbAnalysis
- type DbCar
- type DbEvent
- type DbEventExtra
- type DbSpeedmap
- type DbState
- type DbTeamInEvent
- type DbTrack
- type DeltaPayload
- type Driver
- type EventData
- type EventDataInfo
- type EventSession
- type ExtraInfo
- type Manifests
- type MessageType
- type PitInfo
- type ReplayInfo
- type Sector
- type SpeedmapData
- type SpeedmapPayload
- type StateData
- type StateDelta
- type StatePayload
- type Team
- type TrackInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisCarComputeState ¶ added in v0.9.0
type AnalysisCarInfo ¶
type AnalysisCarInfo struct { Name string `json:"name"` CarNum string `json:"carNum"` CarClass string `json:"carClass"` Drivers []AnalysisDriverInfo `json:"drivers"` }
type AnalysisCarLaps ¶ added in v0.9.0
type AnalysisCarLaps struct { CarNum string `json:"carNum"` Laps []AnalysisLapInfo `json:"laps"` }
type AnalysisCarPits ¶ added in v0.9.0
type AnalysisCarPits struct { CarNum string `json:"carNum"` Current AnalysisPitInfo `json:"current"` History []AnalysisPitInfo `json:"history"` }
type AnalysisCarStints ¶ added in v0.9.0
type AnalysisCarStints struct { CarNum string `json:"carNum"` Current AnalysisStintInfo `json:"current"` History []AnalysisStintInfo `json:"history"` }
type AnalysisData ¶
type AnalysisData struct { CarInfo []AnalysisCarInfo `json:"carInfo"` CarLaps []AnalysisCarLaps `json:"carLaps"` CarPits []AnalysisCarPits `json:"carPits"` CarStints []AnalysisCarStints `json:"carStints"` CarComputeState []AnalysisCarComputeState `json:"carComputeState"` RaceGraph []AnalysisRaceGraph `json:"raceGraph"` Cars AnalysisMessage `json:"cars"` // latest StateData.Cars Session AnalysisMessage `json:"session"` // latest StateData.Session InfoMsgs []AnalysisMessage `json:"infoMsgs"` // all info messages // carNum ordered by race position RaceOrder []string `json:"raceOrder"` }
type AnalysisDataGeneric ¶ added in v0.9.0
type AnalysisDataGeneric map[string]interface{}
used for json marshaling to be compatible with frontend
type AnalysisDriverInfo ¶ added in v0.9.0
type AnalysisDriverInfo struct { DriverName string `json:"driverName"` SeatTime []AnalysisSeatTime `json:"seatTime"` }
type AnalysisGapInfo ¶ added in v0.9.0
type AnalysisLapInfo ¶ added in v0.9.0
type AnalysisMessage ¶ added in v0.9.0
type AnalysisMessage struct { Type MessageType `json:"type"` Data any `json:"data"` Timestamp float64 `json:"timestamp"` }
type AnalysisPitInfo ¶ added in v0.9.0
type AnalysisPitInfo struct { EnterTime float64 `json:"enterTime"` // unit: sessionTime ExitTime float64 `json:"exitTime"` // unit: sessionTime CarNum string `json:"carNum"` LapEnter int `json:"lapEnter"` LapExit int `json:"lapExit"` LaneTime float64 `json:"laneTime"` IsCurrentPitstop bool `json:"isCurrentPitstop"` }
type AnalysisRaceGraph ¶ added in v0.9.0
type AnalysisRaceGraph struct { LapNo int `json:"lapNo"` CarClass string `json:"carClass"` Gaps []AnalysisGapInfo `json:"gaps"` }
type AnalysisSeatTime ¶ added in v0.9.0
type AnalysisStintInfo ¶ added in v0.9.0
type AnalysisStintInfo struct { EnterTime float64 `json:"enterTime"` // unit: sessionTime ExitTime float64 `json:"exitTime"` // unit: sessionTime CarNum string `json:"carNum"` LapEnter int `json:"lapEnter"` LapExit int `json:"lapExit"` StintTime float64 `json:"stintTime"` NumLaps int `json:"numLaps"` IsCurrentStint bool `json:"isCurrentStint"` }
type AvgLapOverTime ¶
type CarData ¶
type CarData struct { Type int `json:"type"` Payload CarPayload `json:"payload"` Timestamp float64 `json:"timestamp"` }
type CarInfo ¶
type CarInfo struct { Name string `json:"name"` NameShort string `json:"nameShort"` CarID int `json:"carId"` CarClassID int `json:"carClassId"` CarClassName string `json:"carClassName"` FuelPct float64 `json:"fuelPct"` PowerAdjust float64 `json:"powerAdjust"` WeightPenalty float64 `json:"weightPenalty"` DryTireSets int `json:"dryTireSets"` }
type CarPayload ¶
type CarPayload struct { Cars []CarInfo `json:"cars"` CarClasses []CarClass `json:"carClasses"` Entries []CarEntry `json:"entries"` // map of carIdx to driver name (for current driver) // TODO: racelogger must be changed to send this data CurrentDrivers map[int]string `json:"currentDrivers"` SessionTime float64 `json:"sessionTime"` }
type ClassSpeedmapData ¶
type DbAnalysis ¶
type DbAnalysis struct { ID int `json:"id"` EventID int `json:"eventId"` Data AnalysisDataGeneric `json:"data"` }
type DbEventExtra ¶
type DbSpeedmap ¶
type DbSpeedmap struct { ID int `json:"id"` EventID int `json:"eventId"` Data SpeedmapData `json:"data"` }
type DbState ¶
type DbState struct { ID int `json:"id"` EventID int `json:"eventId"` Data StateData `json:"data"` }
describes state of the race according to event manifests
type DbTeamInEvent ¶
type DeltaPayload ¶
type DeltaPayload struct { Cars [][3]interface{} `json:"cars"` Session [][2]interface{} `json:"session"` }
type EventData ¶
type EventData struct { Info EventDataInfo `json:"info"` Manifests Manifests `json:"manifests"` ReplayInfo ReplayInfo `json:"replayInfo"` }
type EventDataInfo ¶
type EventDataInfo struct { TrackId int `json:"trackId"` TrackDisplayName string `json:"trackDisplayName"` TrackDisplayShortName string `json:"trackDisplayShortName"` TrackConfigName string `json:"trackConfigName"` TrackLength float64 `json:"trackLength"` TrackPitSpeed float64 `json:"trackPitSpeed"` Name string `json:"name"` Description string `json:"description"` EventTime string `json:"eventTime"` RaceloggerVersion string `json:"raceloggerVersion"` TeamRacing int `json:"teamRacing"` // 0: false MultiClass bool `json:"multiClass"` NumCarTypes int `json:"numCarTypes"` NumCarClasses int `json:"numCarClasses"` IrSessionId int `json:"irSessionId"` Sectors []Sector `json:"sectors"` Sessions []EventSession `json:"sessions"` }
type EventSession ¶ added in v0.8.1
type MessageType ¶
type MessageType int
const ( MTEmpty MessageType = 0 MTState MessageType = 1 MTStateDelta MessageType = 2 MTSpeedmap MessageType = 3 MTCar MessageType = 4 )
type ReplayInfo ¶
type SpeedmapData ¶
type SpeedmapData struct { Type int `json:"type"` Payload SpeedmapPayload `json:"payload"` Timestamp float64 `json:"timestamp"` }
type SpeedmapPayload ¶
type SpeedmapPayload struct { Data map[string]*ClassSpeedmapData `json:"data"` ChunkSize int `json:"chunkSize"` TimeOfDay float64 `json:"timeOfDay"` TrackTemp float64 `json:"trackTemp"` TrackLength float64 `json:"trackLength"` SessionTime float64 `json:"sessionTime"` CurrentPos float64 `json:"currentPos"` }
type StateData ¶
type StateData struct { Type int `json:"type"` Payload StatePayload `json:"payload"` Timestamp float64 `json:"timestamp"` }
contains the state message sent by the client via WAMP
type StateDelta ¶
type StateDelta struct { Type int `json:"type"` Payload DeltaPayload `json:"payload"` Timestamp float64 `json:"timestamp"` }
type StatePayload ¶
type StatePayload struct { Cars [][]interface{} `json:"cars"` Session []interface{} `json:"session"` Messages [][]interface{} `json:"messages"` }
these attributes contain generic data according to event manifests
Click to show internal directories.
Click to hide internal directories.