strava

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 16 Imported by: 1

README

Go Reference GitHub go.mod Go version GitHub release (latest by date) Go Report Card Actions Status

HomeDashboard Strava Stats DataSource

HomeDashboard datasource to collect activities and stats from Strava.

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.

func (*StravaClient) Fetch

func (client *StravaClient) Fetch() (proto.Message, error)

Fetch calls stats and activity APIs to collect data for current athlete.

Directories

Path Synopsis
lambda module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL