parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource int
const (
	EventTime DataSource = 1 << iota
	Event
	RaceControl
	Weather
	Timing
	Telemetry
	Location
	TeamRadio
	Drivers
)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func Create

func Create(
	ctx context.Context,
	wg *sync.WaitGroup,
	requestedData DataSource,
	incoming <-chan connection.Payload,
	output flowControl.Flow,
	assets connection.AssetStore,
	session Messages.SessionType,
	log *f1log.F1GopherLibLog,
	timezone *time.Location) *Parser

func (*Parser) ParseErrorf

func (p *Parser) ParseErrorf(file string, timestamp time.Time, msg string, a ...any)

func (*Parser) ParseTimeError

func (p *Parser) ParseTimeError(file string, timestamp time.Time, field string, err error)

func (*Parser) Process

func (p *Parser) Process()

func (*Parser) SelectTelemetrySources added in v1.0.0

func (p *Parser) SelectTelemetrySources(drivers []int)

Jump to

Keyboard shortcuts

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