Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const Host + type Client struct + func NewClient() *Client + func NewClientConfig(cfg Config) *Client + func (c *Client) GetDrivers(ctx context.Context, f DriverFilter) ([]Driver, error) + func (c *Client) GetLaps(ctx context.Context, f LapFilter) ([]Lap, error) + func (c *Client) GetMeetings(ctx context.Context, f MeetingFilter) ([]Meeting, error) + func (c *Client) GetPit(ctx context.Context, f PitFilter) ([]PitStop, error) + func (c *Client) GetRaceControl(ctx context.Context, f RaceControlFilter) ([]RaceControlMsg, error) + func (c *Client) GetSessions(ctx context.Context, f SessionFilter) ([]Session, error) + func (c *Client) GetStints(ctx context.Context, f StintFilter) ([]Stint, error) + type Config struct + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type Driver struct + CountryCode string + DriverNumber int + FullName string + HeadshotURL string + NameAcronym string + TeamColour string + TeamName string + type DriverFilter struct + DriverNumber int + SessionKey int + type Lap struct + DriverNumber int + I1Speed int + I2Speed int + IsPitOutLap bool + LapDuration *float64 + LapNumber int + STSpeed int + type LapFilter struct + DriverNumber int + LapNumber int + SessionKey int + type Meeting struct + CountryCode string + CountryName string + DateStart string + MeetingKey int + MeetingName string + OfficialName string + Year int + type MeetingFilter struct + Year int + type PitFilter struct + DriverNumber int + SessionKey int + type PitStop struct + Date string + DriverNumber int + LapNumber int + PitDuration *float64 + type RaceControlFilter struct + Flag string + SessionKey int + type RaceControlMsg struct + Category string + Date string + DriverNumber *int + Flag string + LapNumber *int + Message string + Scope string + Sector *int + type Session struct + CircuitShortName string + CountryName string + DateEnd string + DateStart string + MeetingKey int + MeetingName string + SessionKey int + SessionName string + SessionType string + Year int + type SessionFilter struct + Circuit string + SessionName string + Year int + type Stint struct + Compound string + DriverNumber int + LapEnd int + LapStart int + StintNumber int + TyreAgeAtStart int + type StintFilter struct + DriverNumber int + SessionKey int