aboutsummaryrefslogtreecommitdiff
path: root/web/views.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/views.go')
-rw-r--r--web/views.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/web/views.go b/web/views.go
index 6fd5adf..cfb31e5 100644
--- a/web/views.go
+++ b/web/views.go
@@ -9,6 +9,7 @@ import (
"github.com/martinlehoux/biking_home/official_climb"
"github.com/martinlehoux/biking_home/ride"
"github.com/martinlehoux/biking_home/rideanalysis"
+ "github.com/martinlehoux/biking_home/strava"
)
type RideView struct {
@@ -376,11 +377,17 @@ type SyncPageData struct {
HasAuth bool
}
+type RateLimitSnapshot struct {
+ Read strava.RateLimit `json:"read"`
+ Overall strava.RateLimit `json:"overall"`
+}
+
type SyncProgress struct {
- Total int `json:"total"`
- Completed int `json:"completed"`
- Imported int `json:"imported"`
- Skipped int `json:"skipped"`
+ Total int `json:"total"`
+ Completed int `json:"completed"`
+ Imported int `json:"imported"`
+ Skipped int `json:"skipped"`
+ RateLimit *RateLimitSnapshot `json:"rateLimit,omitempty"`
}
func formatRideDate(value time.Time) string {