package module
v1.2.0 Latest Latest

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

Go to latest
Published: Jul 15, 2023 License: GPL-3.0 Imports: 8 Imported by: 1



Go module for accessing iracing data api




This section is empty.


This section is empty.


func GetLeague added in v1.1.0

func GetLeague(leagueID string) (map[string]any, error)

func GetLeagueSeasons added in v1.1.0

func GetLeagueSeasons(leagueID string) (map[string]any, error)

func Init

func Init(email string, hash string)


type Driver added in v1.1.7

type Driver struct {
	Cust_id      int
	Display_name string

type Driver_Standings added in v1.1.7

type Driver_Standings struct {
	Rownum               int
	Position             int
	Driver               Driver
	Car_number           int
	Driver_nickname      string
	Wins                 int
	Average_start        int
	Average_finish       int
	Base_points          int
	Negative_adjustments int
	Positive_adjustments int
	Total_adjustments    int
	Total_points         int

type LeagueSeason

type LeagueSeason struct {
	Sessions []Session

type League_Season_Standings added in v1.1.7

type League_Season_Standings struct {
	Car_class_id int
	Success      bool
	Season_id    int
	Car_id       int
	Standings    Standings
	League_id    int

func GetLeagueSeasonStandings added in v1.1.7

func GetLeagueSeasonStandings(leagueID string, seasonID string) (League_Season_Standings, error)

type RaceResult

type RaceResult struct {
	Subsession_id       int
	League_season_name  string
	Start_time          string
	End_time            string
	Session_results     []SessionResult
	Event_laps_complete int
	Track               Track
	League_season_id    int
	RaceID              int

func GetSession added in v1.1.0

func GetSession(sessionId int) (RaceResult, error)

type Result

type Result struct {
	Display_name    string
	Time            string
	Finish_position int
	Interval        int64
	Car_name        string
	League_points   int
	Laps_complete   int
	Average_lap     int64

type Session

type Session struct {
	Launch_at          string
	Race_length        int
	Status             int
	Track              Track
	Time_limit         int
	Private_session_id int
	Has_results        bool
	Session_id         int
	Results            RaceResult
	Subsession_id      int

func GetLeagueSessions added in v1.1.0

func GetLeagueSessions(leagueID string, seasonID string, resultsOnly bool) ([]Session, error)

type SessionResult

type SessionResult struct {
	Simsession_name      string `json:"simsession_name"`
	Simsession_type_name string `json:"simsession_type_name"`
	Simsession_type      string `json:"simsession_type"`
	Simsession_subtype   string `json:"simsession_subtype"`
	Simsession_number    int    `json:"simsession_number"`
	Results              []Result

type Standings added in v1.1.7

type Standings struct {
	Driver_standings []Driver_Standings
	Team_standings   []Team_Standings

type Team_Standings added in v1.1.7

type Team_Standings struct {

type Track

type Track struct {
	Config_name string
	Track_name  string
	Track_id    int

type TrackAsset

type TrackAsset struct {
	Large_image string `json:"large_image"`
	Folder      string `json:"folder"`


Path Synopsis
IRDdb module

Jump to

Keyboard shortcuts

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