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 // contains filtered or unexported fields }
func NewProcessor ¶
func NewProcessor(opts ...ProcessorOption) *Processor
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 (*Processor) ProcessState ¶
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
Click to show internal directories.
Click to hide internal directories.