mirror of
https://github.com/IS1DI/x0gp.git
synced 2026-07-16 20:47:55 +00:00
Add leaderboard for all tracks and track calendar
This commit is contained in:
@@ -27,4 +27,9 @@ type Store interface {
|
||||
// UpdateCarStats applies a partial mutation of read-mostly stats
|
||||
// fields on a car. Used by the race engine hooks.
|
||||
UpdateCarStats(ctx context.Context, id string, fn func(*CarMeta)) error
|
||||
|
||||
// Track Calendar methods
|
||||
GetTrackCalendar(ctx context.Context) ([]TrackCalendarEntry, error)
|
||||
CreateTrackCalendar(ctx context.Context, entry TrackCalendarEntry) (TrackCalendarEntry, error)
|
||||
DeleteTrackCalendar(ctx context.Context, id int) error
|
||||
}
|
||||
Reference in New Issue
Block a user