Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SGDQ2012 = Event{ID: 1, Short: "SGDQ2012", Name: "Summer Games Done Quick", Year: 2012} AGDQ2012 = Event{ID: 2, Short: "AGDQ2012", Name: "Awesome Games Done Quick", Year: 2012} SGDQ2011 = Event{ID: 3, Short: "SGDQ2011", Name: "Summer Games Done Quick", Year: 2011} JRDQ = Event{ID: 4, Short: "JRDQ", Name: "Japan Relief Done Quick", Year: 2011} AGDQ2011 = Event{ID: 5, Short: "AGDQ2011", Name: "Awesome Games Done Quick", Year: 2011} CGDQ = Event{ID: 6, Short: "CGDQ", Name: "Classic Games Done Quick", Year: 2010} AGDQ2013 = Event{ID: 7, Short: "AGDQ2013", Name: "Awesome Games Done Quick", Year: 2013} SGDQ2013 = Event{ID: 8, Short: "SGDQ2013", Name: "Summer Games Done Quick", Year: 2013} AGDQ2014 = Event{ID: 9, Short: "AGDQ2014", Name: "Awesome Games Done Quick", Year: 2014} SGDQ2014 = Event{ID: 10, Short: "SGDQ2014", Name: "Summer Games Done Quick", Year: 2014} AGDQ2015 = Event{ID: 12, Short: "AGDQ2015", Name: "Awesome Games Done Quick", Year: 2015} Spook = Event{ID: 13, Short: "Spook", Name: "Speedrun Spooktacular", Year: 2012} SGDQ2015 = Event{ID: 16, Short: "SGDQ2015", Name: "Summer Games Done Quick", Year: 2015} AGDQ2016 = Event{ID: 17, Short: "AGDQ2016", Name: "Awesome Games Done Quick", Year: 2016} SGDQ2016 = Event{ID: 18, Short: "SGDQ2016", Name: "Summer Games Done Quick", Year: 2016} AGDQ2017 = Event{ID: 19, Short: "AGDQ2017", Name: "Awesome Games Done Quick", Year: 2017} SGDQ2017 = Event{ID: 20, Short: "SGDQ2017", Name: "Summer Games Done Quick", Year: 2017} HRDQ = Event{ID: 21, Short: "HRDQ", Name: "Harvey Relief Done Quick", Year: 2017} AGDQ2018 = Event{ID: 22, Short: "AGDQ2018", Name: "Awesome Games Done Quick", Year: 2018} SGDQ2018 = Event{ID: 23, Short: "SGDQ2018", Name: "Summer Games Done Quick", Year: 2018} GDQX2018 = Event{ID: 24, Short: "GDQX2018", Name: "Games Done Quick Express", Year: 2018} AGDQ2019 = Event{ID: 25, Short: "AGDQ2019", Name: "Awesome Games Done Quick", Year: 2019} SGDQ2019 = Event{ID: 26, Short: "SGDQ2019", Name: "Summer Games Done Quick", Year: 2019} GDQX2019 = Event{ID: 27, Short: "GDQX2019", Name: "Games Done Quick Express", Year: 2019} AGDQ2020 = Event{ID: 28, Short: "AGDQ2020", Name: "Awesome Games Done Quick", Year: 2020} FrostFatales2020 = Event{ID: 29, Short: "FrostFatales2020", Name: "Frost Fatales", Year: 2020} SGDQ2020 = Event{ID: 30, Short: "SGDQ2020", Name: "Summer Games Done Quick", 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: "Awesome Games Done Quick 2021 Online", Year: 2021} SGDQ2021 = Event{ID: 35, Short: "SGDQ2021", Name: "Summer Games Done Quick 2021 Online", Year: 2021} FlameFatales2021 = Event{ID: 36, Short: "FlameFatales2021", Name: "Flame Fatales", Year: 2021} AGDQ2022 = Event{ID: 37, Short: "AGDQ2022", Name: "Awesome Games Done Quick 2022 Online", Year: 2022} FrostFatales2022 = Event{ID: 38, Short: "FrostFatales2022", Name: "Frost Fatales", Year: 2022} SGDQ2022 = Event{ID: 39, Short: "SGDQ2022", Name: "Summer Games Done Quick", Year: 2022} FlameFatales2022 = Event{ID: 40, Short: "FlameFatales2022", Name: "Flame Fatales", Year: 2022} AGDQ2023 = Event{ID: 41, Short: "AGDQ2023", Name: "Awesome Games Done Quick", Year: 2023} FrostFatales2023 = Event{ID: 42, Short: "FrostFatales2023", Name: "Frost Fatales", Year: 2023} SGDQ2023 = Event{ID: 43, Short: "SGDQ2023", Name: "Summer Games Done Quick", Year: 2023} FlameFatales2023 = Event{ID: 44, Short: "FlameFatales2023", Name: "Flame Fatales", Year: 2023} GDQX2023 = Event{ID: 45, Short: "GDQX2023", Name: "Games Done Quick Express", Year: 2023} AGDQ2024 = Event{ID: 46, Short: "AGDQ2024", Name: "Awesome Games Done Quick", Year: 2024} FrostFatales2024 = Event{ID: 47, Short: "FrostFatales2024", Name: "Frost Fatales", Year: 2024} SGDQ2024 = Event{ID: 48, Short: "SGDQ2024", Name: "Summer Games Done Quick", Year: 2024} FlameFatales2024 = Event{ID: 49, Short: "FlameFatales2024", Name: "Flame Fatales", Year: 2024} SSAtPAXWest = Event{ID: 50, Short: "SSAtPAXWest", Name: "Speedrun Stage @ PAX West", Year: 2024} GDQX2024 = Event{ID: 51, Short: "GDQX2024", Name: "Games Done Quick Express", Year: 2024} AGDQ2025 = Event{ID: 52, Short: "AGDQ2025", Name: "Awesome Games Done Quick", Year: 2025} DRDQ2024 = Event{ID: 53, Short: "DRDQ2024", Name: "Disaster Relief Done Quick", Year: 2024} BTB2025 = Event{ID: 54, Short: "BTB2025", Name: "Back to Black", Year: 2025} )
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.
func (*Client) Event ¶
Event retrieves event information for the event ID.
Contrary to Client.Events, this includes donation information.
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 Donation `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 []Talent `json:"runners"` Hosts []Talent `json:"hosts"` Commentators []Talent `json:"commentators"` Category string `json:"category"` Platform string `json:"platform"` }
Run represents a single event at a GDQ
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 substring match. This means that if you call somtething like schedule.ForHost("b") you can get a schedule with runs for multiple hosts.
You'll get a nil schedule if no run matched the host.
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 substring match. This means that if you call somtething like schedule.ForRunner("b") you can get a schedule with runs for multiple runners.
You'll get a nil schedule if no run matched the runner.
The match is case insensitive.
func (*Schedule) ForTitle ¶
ForTitle returns a new schedule with runs only matching the title.
The title is matched using a substring match. This means that if you call somtething like schedule.ForTitle("b") you can get a schedule with multiple runs.
You'll get a nil schedule if no run matched the title.
The match is case insensitive.