processing

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 5 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 {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(opts ...ProcessorOption) *Processor

func (*Processor) ProcessCarData

func (p *Processor) ProcessCarData(payload *racestatev1.PublishDriverDataRequest)

func (*Processor) ProcessSpeedmap

func (p *Processor) ProcessSpeedmap(payload *racestatev1.PublishSpeedmapRequest)

actually, there is no real processing here, just forwarding to broadcaster

func (*Processor) ProcessState

func (p *Processor) ProcessState(payload *racestatev1.PublishStateRequest)

type ProcessorOption

type ProcessorOption func(proc *Processor)

func WithCarProcessor

func WithCarProcessor(carProcessor *car.CarProcessor) ProcessorOption

func WithPublishChannels

func WithPublishChannels(
	analysisChan chan *analysisv1.Analysis,
	racestateChan chan *racestatev1.PublishStateRequest,
	driverDataChan chan *racestatev1.PublishDriverDataRequest,
	speedmapChan chan *racestatev1.PublishSpeedmapRequest,
) ProcessorOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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