flowControl

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow interface {
	Run()

	AddWeather(weather Messages.Weather)
	AddRaceControlMessage(raceControl Messages.RaceControlMessage)
	AddTiming(timing Messages.Timing)
	AddEvent(timing Messages.Event)
	AddTelemetry(timing Messages.Telemetry)
	AddLocation(timing Messages.Location)
	AddRadio(timing Messages.Radio)
	AddDrivers(driver Messages.Drivers)

	IncrementLap()
	IncrementTime(duration time.Duration)
	SkipToSessionStart(start time.Time)
	TogglePause()
	IsPaused() bool
}

func CreateFlowControl

func CreateFlowControl(
	ctx context.Context,
	wg *sync.WaitGroup,
	flowType FlowType,
	outputWeather chan<- Messages.Weather,
	outputRaceControlMessages chan<- Messages.RaceControlMessage,
	outputTimingMessages chan<- Messages.Timing,
	outputEvent chan<- Messages.Event,
	outputTelemetry chan<- Messages.Telemetry,
	outputLocation chan<- Messages.Location,
	outputEventTime chan<- Messages.EventTime,
	outputRadio chan<- Messages.Radio,
	outputDrivers chan<- Messages.Drivers) Flow

type FlowType

type FlowType int
const (
	Realtime FlowType = iota
	StraightThrough
)

Jump to

Keyboard shortcuts

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