Documentation
¶
Index ¶
- func HappeningSessions() (liveSession RaceEvent, nextSession RaceEvent, hasLiveSession bool, ...)
- func SetLogOutput(w io.Writer)
- type F1GopherLib
- func CreateDebugReplay(requestedData parser.DataSource, replayFile string, ...) (F1GopherLib, error)
- func CreateLive(requestedData parser.DataSource, archive string, cache string) (F1GopherLib, error)
- func CreateReplay(requestedData parser.DataSource, event RaceEvent, cache string, ...) (F1GopherLib, error)
- type RaceEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HappeningSessions ¶ added in v1.0.0
func SetLogOutput ¶
Types ¶
type F1GopherLib ¶
type F1GopherLib interface { Name() string Session() Messages.SessionType CircuitTimezone() *time.Location SessionStart() time.Time Track() string TrackYear() int TimeLostInPitlane() time.Duration Weather() <-chan Messages.Weather RaceControlMessages() <-chan Messages.RaceControlMessage Timing() <-chan Messages.Timing Event() <-chan Messages.Event Telemetry() <-chan Messages.Telemetry Location() <-chan Messages.Location Time() <-chan Messages.EventTime Radio() <-chan Messages.Radio Drivers() <-chan Messages.Drivers SelectTelemetrySources(drivers []int) IncrementLap() IncrementTime(duration time.Duration) SkipToSessionStart() TogglePause() IsPaused() bool Close() }
func CreateDebugReplay ¶ added in v1.0.0
func CreateDebugReplay( requestedData parser.DataSource, replayFile string, dataFlow flowControl.FlowType) (F1GopherLib, error)
func CreateLive ¶
func CreateLive(requestedData parser.DataSource, archive string, cache string) (F1GopherLib, error)
func CreateReplay ¶
func CreateReplay( requestedData parser.DataSource, event RaceEvent, cache string, dataFlow flowControl.FlowType) (F1GopherLib, error)
type RaceEvent ¶
type RaceEvent struct { Country string RaceTime time.Time EventTime time.Time Type Messages.SessionType Name string TrackName string TrackYearCreated int TimeLostInPitlane time.Duration // contains filtered or unexported fields }
func CreateRaceEvent ¶
func RaceHistory ¶
func RaceHistory() []RaceEvent
Click to show internal directories.
Click to hide internal directories.