test_util

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPoint

type DataPoint[P any] struct {
	Packet *P     `json:"packet,omitempty"`
	Error  string `json:"error,omitempty"`
	Data   []byte `json:"data,omitempty"`
}

func NewDataPoint

func NewDataPoint[P any](packet *P, err error, data []byte) DataPoint[P]

type DataPoints

type DataPoints[P any] struct {
	Packets []DataPoint[P] `json:"packets,omitempty"`
}

func NewDataPoints

func NewDataPoints[P any]() *DataPoints[P]

func (*DataPoints[P]) Add

func (d *DataPoints[P]) Add(packet *P, err error, data []byte)

func (*DataPoints[P]) Load

func (d *DataPoints[P]) Load(filepath string) error

func (*DataPoints[P]) Store

func (d *DataPoints[P]) Store(filepath string) error

type Results

type Results struct {
	PacketCarDamage           *DataPoints[f1_2023.PacketCarDamageData]
	PacketCarSetups           *DataPoints[f1_2023.PacketCarSetupsData]
	PacketCarStatus           *DataPoints[f1_2023.PacketCarStatusData]
	PacketCarTelemetry        *DataPoints[f1_2023.PacketCarTelemetryData]
	PacketEvent               *DataPoints[f1_2023.PacketEventData]
	PacketFinalClassification *DataPoints[f1_2023.PacketFinalClassificationData]
	// PacketHeader              *DataPoints[f1_2023.PacketHeader]
	PacketLapData        *DataPoints[f1_2023.PacketLapData]
	PacketLobbyInfo      *DataPoints[f1_2023.PacketLobbyInfoData]
	PacketMotion         *DataPoints[f1_2023.PacketMotionData]
	PacketMotionEx       *DataPoints[f1_2023.PacketMotionExData]
	PacketParticipants   *DataPoints[f1_2023.PacketParticipantsData]
	PacketSession        *DataPoints[f1_2023.PacketSessionData]
	PacketSessionHistory *DataPoints[f1_2023.PacketSessionHistoryData]
	PacketTyreSets       *DataPoints[f1_2023.PacketTyreSetsData]
}

func NewResults

func NewResults() *Results

func (*Results) AddPacket

func (r *Results) AddPacket(parser *f1_2023.PacketParser, data []byte)

func (*Results) Load

func (r *Results) Load(folder string) error

func (*Results) Store

func (r *Results) Store(folder string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL