Documentation ¶
Index ¶
- Variables
- type Activity
- type Point
- type Service
- func (s Service) Activity(ctx context.Context, id int) (Activity, error)
- func (s Service) ActivityPoints(ctx context.Context, id int) ([]Point, error)
- func (s *Service) Configure(app gongo.App) error
- func (s Service) RecentActivities(ctx context.Context) ([]Activity, error)
- func (s Service) Resources() []interface{}
- type StravaUserTokens
- type Stream
- type Tokens
Constants ¶
This section is empty.
Variables ¶
View Source
var NoTokenError = errors.New("current user doesn't have strava access tokens")
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { ID int `json:"id"` Name string `json:"name"` Distance float64 `json:"distance"` MovingTime int `json:"moving_time"` ElapsedTime int `json:"elapsed_time"` TotalEleveationGain float64 `json:"total_elevation_gain"` Type string `json:"Walk"` StartDate time.Time `json:"start_date"` AverageSpeed float64 `json:"average_speed"` }
type StravaUserTokens ¶
Click to show internal directories.
Click to hide internal directories.