flowControl

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: GPL-3.0 Imports: 3 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)

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

func CreateFlowControl

func CreateFlowControl(
	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) 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