ergast

package
v0.0.0-...-12f8a50 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshRaceStats

func RefreshRaceStats() error

RefreshRaceStats updates the race starts, wins etc, but not the expensive stuff

func Repopulate

func Repopulate() error

Repopulate empties the redis cache and get fresh stats from ergast

Types

type Constructor

type Constructor struct {
	ConstructorID      string   `json:"constructorId"`
	URL                string   `json:"url"`
	Name               string   `json:"name"`
	Nationality        string   `json:"nationality"`
	Flag               string   `json:"flag"`
	ConTitleCount      int      `json:"constructors-titles-count"`
	ConstructorsTitles []string `json:"constructors-titles"`
	YearsActive        []string `json:"years-active"`
	YearsActiveH       string   `json:"years-active-human"`
	RaceStarts         int      `json:"race-starts"`
	RaceWins           int      `json:"race-wins"`
	WinRate            float32  `json:"win-rate"`
	WinRateH           string   `json:"win-rate-human"`
}

Constructor holds the info about constructors

type StandList

type StandList struct {
	Year string `json:"season"`
}

StandList contains the years a Constructor has won the title

Jump to

Keyboard shortcuts

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