Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SGDQ2012 = Event{ID: 1, Short: "SGDQ2012", Name: sgdq, Year: 2012} AGDQ2012 = Event{ID: 2, Short: "SGDQ2012", Name: agdq, Year: 2012} SGDQ2011 = Event{ID: 3, Short: "SGDQ2011", Name: sgdq, Year: 2011} JRDQ = Event{ID: 4, Short: "JRDQ", Name: "Japan Relief Done Quick", Year: 2011} AGDQ2011 = Event{ID: 5, Short: "AGDQ2011", Name: agdq, Year: 2011} CGDQ = Event{ID: 6, Short: "CGDQ", Name: "Classic Games Done Quick", Year: 2010} AGDQ2013 = Event{ID: 7, Short: "AGDQ2013", Name: agdq, Year: 2013} SGDQ2013 = Event{ID: 8, Short: "SGDQ2013", Name: sgdq, Year: 2013} AGDQ2014 = Event{ID: 9, Short: "AGDQ2014", Name: agdq, Year: 2014} SGDQ2014 = Event{ID: 10, Short: "SGDQ2014", Name: sgdq, Year: 2014} AGDQ2015 = Event{ID: 12, Short: "AGDQ2015", Name: agdq, Year: 2015} SPOOK = Event{ID: 13, Short: "SPOOK", Name: "Speedrun Spooktacular", Year: 2012} SGDQ2015 = Event{ID: 16, Short: "SGDQ2015", Name: sgdq, Year: 2015} AGDQ2016 = Event{ID: 17, Short: "AGDQ2016", Name: agdq, Year: 2016} SGDQ2016 = Event{ID: 18, Short: "SGDQ2016", Name: sgdq, Year: 2016} AGDQ2017 = Event{ID: 19, Short: "AGDQ2017", Name: agdq, Year: 2017} SGDQ2017 = Event{ID: 20, Short: "SGDQ2017", Name: sgdq, Year: 2017} HRDQ = Event{ID: 21, Short: "HRDQ", Name: "Harvey Relief Done Quick", Year: 2017} AGDQ2018 = Event{ID: 22, Short: "AGDQ2018", Name: agdq, Year: 2018} SGDQ2018 = Event{ID: 23, Short: "SGDQ2018", Name: sgdq, Year: 2018} GDQX2018 = Event{ID: 24, Short: "GDQX2018", Name: express, Year: 2018} AGDQ2019 = Event{ID: 25, Short: "AGDQ2019", Name: agdq, Year: 2019} SGDQ2019 = Event{ID: 26, Short: "SGDQ2019", Name: sgdq, Year: 2019} GDQX2019 = Event{ID: 27, Short: "GDQX2019", Name: express, Year: 2019} AGDQ2020 = Event{ID: 28, Short: "AGDQ2020", Name: agdq, Year: 2020} FrostFatales2020 = Event{ID: 29, Short: "FrostFatales2020", Name: frost, Year: 2020} SGDQ2020 = Event{ID: 30, Short: "SGDQ2020", Name: sgdq, Year: 2020} CRDQ = Event{ID: 31, Short: "CRDQ", Name: "Corona Relief Done Quick", Year: 2020} THPSLaunch = Event{ID: 32, Short: "THPSLaunch", Name: "Tony Hawk's Pro Skater 1 + 2 Launch Celebration", Year: 2020} FleetFatales2020 = Event{ID: 33, Short: "FleetFatales2020", Name: "Fleet Fatales", Year: 2020} AGDQ2021 = Event{ID: 34, Short: "AGDQ2021", Name: agdq + " Online", Year: 2021} SGDQ2021 = Event{ID: 35, Short: "SGDQ2021", Name: sgdq + " Online", Year: 2021} FlamesFatales2021 = Event{ID: 36, Short: "FlamesFatales2021", Name: flame, Year: 2021} AGDQ2022 = Event{ID: 37, Short: "AGDQ2022", Name: agdq + " Online", Year: 2022} FrostFatales2022 = Event{ID: 38, Short: "FrostFatales2022", Name: frost, Year: 2022} SGDQ2022 = Event{ID: 39, Short: "SGDQ2022", Name: sgdq, Year: 2022} FlamesFatales2022 = Event{ID: 40, Short: "FlamesFatales2022", Name: flame, Year: 2022} AGDQ2023 = Event{ID: 41, Short: "AGDQ2023", Name: agdq, Year: 2023} FrostFatales2023 = Event{ID: 42, Short: "FrostFatales2023", Name: frost, Year: 2023} SGDQ2023 = Event{ID: 43, Short: "SGDQ2023", Name: sgdq, Year: 2023} FlamesFatales2023 = Event{ID: 44, Short: "FlamesFatales2023", Name: flame, Year: 2023} GDQX2023 = Event{ID: 45, Short: "GDQX2023", Name: express, Year: 2023} AGDQ2024 = Event{ID: 46, Short: "AGDQ2024", Name: agdq, Year: 2024} FrostFatales2024 = Event{ID: 47, Short: "FrostFatales2024", Name: frost, Year: 2024} SGDQ2024 = Event{ID: 48, Short: "SGDQ2024", Name: sgdq, Year: 2024} FlamesFatales2024 = Event{ID: 49, Short: "FlamesFatales2024", Name: flame, Year: 2024} PAXWest2024 = Event{ID: 50, Short: "PAXWest2024", Name: "Speedrun Stage @ PAX West", Year: 2024} GDQX2024 = Event{ID: 51, Short: "GDQX2024", Name: express, Year: 2024} )
All the GDQ events, sorted by Event.ID
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a GDQ API client
type Donations ¶ added in v2.1.0
type Donations struct { Total float64 `json:"total"` Max float64 `json:"max"` Count uint `json:"count"` Average float64 `json:"average"` }
Donations is the donation summary of a GDQ event
type Duration ¶
Duration represents a interval of time
func (Duration) MarshalJSON ¶
MarshalJSON marshals a Duration to JSON
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON unmarshals a duration like thing from JSON
type Event ¶
type Event struct { ID uint `json:"id"` Short string `json:"short"` Name string `json:"name"` Year int `json:"year"` Donations Donations `json:"donations"` }
Event is the schedule ID of a GDQ event
func GetEventByID ¶
GetEventByID fetches the event by ID
func GetEventByName ¶
GetEventByName tries to find an event matching the input
type Run ¶
type Run struct { Title string `json:"title"` Start time.Time `json:"start"` Estimate Duration `json:"estimate"` Runners Runners `json:"runners"` Hosts []string `json:"hosts"` Category string `json:"category"` Console string `json:"console"` }
Run represents a single event at a GDQ
type Runner ¶
type Runner struct { Handle string `json:"handle"` Social social `json:"social"` }
Runner represents a person running a game
type Schedule ¶
type Schedule struct { Runs []*Run // contains filtered or unexported fields }
Schedule represents the runs occurring at a GDQ event
func NewScheduleFrom ¶
NewScheduleFrom returns a scheduled filled with the runs
func (*Schedule) ForHost ¶
ForHost returns a new schedule with runs only matching this host
The host's name is matched using a string submatch. This means that if you call somtething like schedule.ForHust("b") you can get a schedule with runs for multiple hosts.
The match is case insensitive.
func (*Schedule) ForRunner ¶
ForRunner returns a new schedule with runs only matching this runner
The runner's name is matched using a string submatch. This means that if you call somtething like schedule.ForRunner("b") you can get a schedule with runs for multiple runners.
The match is case insensitive.