strava

package
v0.0.0-...-65eedcd Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Email    string
	Password string
}

func ParseConfig

func ParseConfig(path string) (*Config, error)

type CookieClient

type CookieClient interface {
	AddCookies(*http.Request)
	GetTarget() *url.URL
}

type StravaClient

type StravaClient struct {
	http.Client
	// contains filtered or unexported fields
}

func NewStravaClient

func NewStravaClient(target *url.URL) *StravaClient

func (*StravaClient) AddCookies

func (client *StravaClient) AddCookies(req *http.Request)

func (*StravaClient) Authenticate

func (client *StravaClient) Authenticate(email string, password string) error

func (*StravaClient) GetCloudFrontCookies

func (client *StravaClient) GetCloudFrontCookies() map[string]string

func (*StravaClient) GetTarget

func (client *StravaClient) GetTarget() *url.URL

type StravaProxy

type StravaProxy struct {
	httputil.ReverseProxy
}

func NewStravaProxy

func NewStravaProxy(client CookieClient) *StravaProxy

Jump to

Keyboard shortcuts

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