tracks

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRacingClient

type IRacingClient interface {
	GetTracks(ctx context.Context, accessToken string) ([]iracing.TrackInfo, error)
	GetTrackAssets(ctx context.Context, accessToken string) (map[int64]iracing.TrackAssets, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(client IRacingClient) *Service

func (*Service) GetAll

func (s *Service) GetAll(ctx context.Context, accessToken string) ([]Track, error)

type Track

type Track struct {
	ID                int64
	Name              string
	ConfigName        string
	Category          string
	Location          string
	CornersPerLap     int
	LengthMiles       float64
	Description       string
	LogoURL           string
	SmallImageURL     string
	LargeImageURL     string
	TrackMapURL       string
	TrackMapLayers    TrackMapLayers
	IsDirt            bool
	IsOval            bool
	HasNightLighting  bool
	RainEnabled       bool
	FreeWithSub       bool
	Retired           bool
	PitRoadSpeedLimit int
}

type TrackMapLayers

type TrackMapLayers struct {
	Background  string
	Inactive    string
	Active      string
	Pitroad     string
	StartFinish string
	Turns       string
}

Jump to

Keyboard shortcuts

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