processing

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	Manifests   *model.Manifests
	CurrentData *model.AnalysisData

	ReplayInfo   model.ReplayInfo
	CombinedData model.AnalysisDataWithPatches
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(opts ...ProcessorOption) *Processor

func (*Processor) GetCombinedPatchData added in v0.11.0

func (p *Processor) GetCombinedPatchData() *model.AnalysisDataWithPatches

func (*Processor) GetData

func (p *Processor) GetData() *model.AnalysisData

func (*Processor) ProcessAnalysisData

func (p *Processor) ProcessAnalysisData(analysisData *model.AnalysisData)

takes analysis data and initializes the carProcessor and raceProcessor with it Note: this is called by webfrontend when connecting to an existing event The processor is already initialized with manifests and CarPayload.

func (*Processor) ProcessCarData

func (p *Processor) ProcessCarData(carMsg *model.CarData)

func (*Processor) ProcessState

func (p *Processor) ProcessState(stateMsg *model.StateData)

ProcessState processes the given stateMsg

type ProcessorOption

type ProcessorOption func(proc *Processor)

func WithCarProcessor

func WithCarProcessor(carProcessor *car.CarProcessor) ProcessorOption

func WithManifests

func WithManifests(manifests *model.Manifests, raceSession int) ProcessorOption

entry point for ism when registering a new event. carProcessor and raceProcessor are created here

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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