race

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 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 RaceProcessor

type RaceProcessor struct {
	// carNum
	RaceOrder  []string
	CarLaps    map[string]*analysisv1.CarLaps     // key carNum
	RaceGraph  map[string][]*analysisv1.RaceGraph // key: "overall", carClass names
	ReplayInfo eventv1.ReplayInfo
	// contains filtered or unexported fields
}

func NewRaceProcessor

func NewRaceProcessor(opts ...RaceProcessorOption) *RaceProcessor

func (*RaceProcessor) ProcessStatePayload

func (p *RaceProcessor) ProcessStatePayload(payload *racestatev1.PublishStateRequest)

processes the given state message. This message must be already processed by the CarProcessor

type RaceProcessorOption

type RaceProcessorOption func(rp *RaceProcessor)

func WithCarProcessor

func WithCarProcessor(cp *car.CarProcessor) RaceProcessorOption

func WithRaceSession

func WithRaceSession(raceSession uint32) RaceProcessorOption

Jump to

Keyboard shortcuts

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