Documentation
¶
Index ¶
- func SetLogOutput(w io.Writer)
- type F1GopherLib
- func CreateLive(requestedData parser.DataSource, archive string, cache string) (error, F1GopherLib)
- func CreateLiveReplay(requestedData parser.DataSource, replayFile string, event RaceEvent, ...) (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 SetLogOutput ¶
Types ¶
type F1GopherLib ¶
type F1GopherLib interface {
Name() string
Session() Messages.SessionType
CircuitTimezone() *time.Location
SessionStart() time.Time
SelectData(requestedData parser.DataSource)
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
IncrementLap()
IncrementTime(duration time.Duration)
SkipToSessionStart()
TogglePause()
IsPaused() bool
}
func CreateLive ¶
func CreateLive(requestedData parser.DataSource, archive string, cache string) (error, F1GopherLib)
func CreateLiveReplay ¶
func CreateLiveReplay(requestedData parser.DataSource, replayFile string, event RaceEvent, cache string) (F1GopherLib, error)
func CreateReplay ¶
func CreateReplay( requestedData parser.DataSource, event RaceEvent, cache string) (F1GopherLib, error)
type RaceEvent ¶
type RaceEvent struct {
Country string
RaceTime time.Time
EventTime time.Time
Type Messages.SessionType
Name string
TrackName string
// contains filtered or unexported fields
}
func CreateRaceEvent ¶
func NextSession ¶
func RaceHistory ¶
func RaceHistory() []RaceEvent
Click to show internal directories.
Click to hide internal directories.