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 WithRaceSessions ¶ added in v0.21.1
func WithRaceSessions(raceSessions []uint32) RaceProcessorOption
Click to show internal directories.
Click to hide internal directories.