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]model.AnalysisCarLaps // key carNum RaceGraph map[string][]model.AnalysisRaceGraph // key: "overall", carClass names ReplayInfo model.ReplayInfo // contains filtered or unexported fields }
func NewRaceProcessor ¶
func NewRaceProcessor(opts ...RaceProcessorOption) *RaceProcessor
func (*RaceProcessor) ProcessAnalysisData ¶
func (p *RaceProcessor) ProcessAnalysisData(analysisData *model.AnalysisData)
func (*RaceProcessor) ProcessStatePayload ¶
func (p *RaceProcessor) ProcessStatePayload(stateMsg *model.StateData)
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 WithPayloadExtractor ¶
func WithPayloadExtractor(pe *util.PayloadExtractor) RaceProcessorOption
func WithRaceSession ¶
func WithRaceSession(raceSession int) RaceProcessorOption
Click to show internal directories.
Click to hide internal directories.