Documentation ¶
Index ¶
- type AnalysisCarInfo
- type AnalysisData
- 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 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 AnalysisCarInfo ¶
type AnalysisData ¶
type AnalysisData map[string]interface{}
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 ClassSpeedmapData ¶
type DbAnalysis ¶
type DbAnalysis struct { ID int `json:"id"` EventID int `json:"eventId"` Data AnalysisData `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 []struct { Num int `json:"num"` Name string `json:"name"` } `json:"sessions"` }
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.