Documentation ¶
Index ¶
- type Athlete
- type GPX
- type Strava
- func (s *Strava) ExportGPX(user *User, activityId int64) (string, error)
- func (s *Strava) GetAccessToken(cfg *models.Config, code string) (*client.AuthorizationResponse, error)
- func (s *Strava) GetActivityDetail(user *User, activityId int64) (*client.ActivityDetailed, error)
- func (s *Strava) GetActivityLaps(user *User, activityId int64) ([]*client.LapEffortSummary, error)
- func (s *Strava) GetActivityStream(user *User, activityId int64) (*client.StreamSet, error)
- func (s *Strava) GetAllActivities(user *User) ([]*client.ActivitySummary, error)
- func (s *Strava) GetAthlete(user *User, athleteId int64) (*Athlete, error)
- func (s *Strava) GetAuthorizationURL(cfg *models.Config, callbackURL string) string
- func (s *Strava) GetBeforeOfActivities(user *User, before int64) ([]*client.ActivitySummary, error)
- func (s *Strava) GetCurrentAthlete(accessToken string) (*client.AthleteDetailed, error)
- func (s *Strava) GetGear(user *User, gearId string) (*client.GearDetailed, error)
- func (s *Strava) GetPageOfActivities(user *User, page int) ([]*client.ActivitySummary, error)
- func (s *Strava) NewUser(cfg *models.Config, accessToken string) (*User, error)
- func (s *Strava) ParseError(err error) *client.Error
- type Trk
- type Trkpt
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Athlete ¶
type Athlete struct { Athlete *client.AthleteSummary Stats *client.AthleteStats }
type Strava ¶
type Strava struct {
// contains filtered or unexported fields
}
func (*Strava) GetAccessToken ¶
func (*Strava) GetActivityDetail ¶
func (*Strava) GetActivityLaps ¶
func (*Strava) GetActivityStream ¶
func (*Strava) GetAllActivities ¶
func (s *Strava) GetAllActivities(user *User) ([]*client.ActivitySummary, error)
func (*Strava) GetAthlete ¶
func (*Strava) GetAuthorizationURL ¶
func (*Strava) GetBeforeOfActivities ¶
func (*Strava) GetCurrentAthlete ¶
func (s *Strava) GetCurrentAthlete(accessToken string) (*client.AthleteDetailed, error)
func (*Strava) GetPageOfActivities ¶
type Trkpt ¶
type Trkpt struct { Lat float64 `xml:"lat,attr"` Lon float64 `xml:"lon,attr"` Ele float64 `xml:"ele,omitempty"` Time string `xml:"time"` Temp int `xml:"temp,omitempty"` HR int `xml:"hr,omitempty"` Cad int `xml:"cad,omitempty"` Pwr int `xml:"pwr,omitempty"` Spd float64 `xml:"spd,omitempty"` Dist float64 `xml:"dist,omitempty"` Mov bool `xml:"mov,omitempty"` Grade float64 `xml:"grade,omitempty"` }
type User ¶
type User struct { AccessToken string `json:"access_token"` Athlete *client.AthleteDetailed `json:"athlete"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.