connection

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

Documentation

Index

Constants

View Source
const AudioStreamsFile = "AudioStreams"
View Source
const CarDataFile = "CarData.z"
View Source
const CatchupFile = "Catchup"
View Source
const ContentStreamsFile = "ContentStreams"
View Source
const DriverListFile = "DriverList"
View Source
const EndOfDataFile = "EndOfData"

These are special files that don't come from the raw data but we use internally

View Source
const ExtrapolatedClockFile = "ExtrapolatedClock"
View Source
const HeartbeatFile = "Heartbeat"
View Source
const LapCountFile = "LapCount"
View Source
const NotFoundResponse = "" /* 127-byte string literal not displayed */
View Source
const PositionFile = "Position.z"
View Source
const RaceControlMessagesFile = "RaceControlMessages"
View Source
const SessionDataFile = "SessionData"
View Source
const SessionInfoFile = "SessionInfo"
View Source
const SessionStatusFile = "SessionStatus"
View Source
const TeamRadioFile = "TeamRadio"
View Source
const TimingAppDataFile = "TimingAppData"
View Source
const TimingDataFile = "TimingData"
View Source
const TimingStatsFile = "TimingStats"
View Source
const TopThreeFile = "TopThree"
View Source
const TrackStatusFile = "TrackStatus"
View Source
const WeatherDataFile = "WeatherData"

Variables

Functions

func CreateArchivingLive

func CreateArchivingLive(ctx context.Context, archiveFile string) (*live, error)

func CreateLive

func CreateLive(ctx context.Context, wg *sync.WaitGroup, log *f1log.F1GopherLibLog) *live

func CreateReplay

func CreateReplay(
	ctx context.Context,
	wg *sync.WaitGroup,
	log *f1log.F1GopherLibLog,
	url string,
	session Messages.SessionType,
	eventYear int,
	cache string) *replay

Types

type AssetStore

type AssetStore interface {
	TeamRadio(file string) ([]byte, error)
}

func CreateAssetStore

func CreateAssetStore(url string, cache string, log *f1log.F1GopherLibLog) AssetStore

type Connection

type Connection interface {
	Connect() (error, <-chan Payload)

	IncrementTime(amount time.Duration)

	JumpToStart() time.Time
}

func CreateArchivedLive

func CreateArchivedLive(
	ctx context.Context,
	wg *sync.WaitGroup,
	log *f1log.F1GopherLibLog,
	file string) Connection

type Payload

type Payload struct {
	Name      string
	Data      []byte
	Timestamp string
}

Jump to

Keyboard shortcuts

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