Documentation ¶
Overview ¶
Package web scrapes the strava website for functionality not available via the API.
Inspired by https://github.com/pR0Ps/stravaweblib
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Auth *AuthService Export *ExportService Fitness *FitnessService // contains filtered or unexported fields }
Client client
type ExportService ¶
type ExportService service
ExportService is the API for export endpoints
type FitnessService ¶
type FitnessService service
FitnessService is the API for fitness endpoints
func (*FitnessService) TrainingLoad ¶
func (s *FitnessService) TrainingLoad(ctx context.Context, userID int) ([]*strava.TrainingLoad, error)
TrainingLoad returns the training load for an athlete
type Option ¶
Option provides a configuration mechanism for a Client
func WithHTTPClient ¶
WithHTTPClient sets the underlying http client.
func WithHTTPTracing ¶
WithHTTPTracing enables tracing http calls.
func WithRateLimiter ¶
WithRateLimiter rate limits the client's api calls
func WithTransport ¶
func WithTransport(t http.RoundTripper) Option
WithTransport sets the underlying http client transport.
Click to show internal directories.
Click to hide internal directories.