Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StravaClient ¶
type StravaClient struct {
// contains filtered or unexported fields
}
StravaClient handles request to Strava APIs.
func New ¶
func New(conf config.Config, secretsmanager secrets.SecretsManager, logger log.Logger) (*StravaClient, error)
New create a Strava client. Required config is:
strava.athleteid: Id of an athelte at Strave this client should retrieve stats and activities for. strava.activitycount: Number of retrieved activities. Default is 5 activities. strava.activitydays: Time range of days activities should be retrieved for.
Click to show internal directories.
Click to hide internal directories.