Documentation ¶
Index ¶
- Constants
- func InitProvider(cfg []*ClientConfig)
- func Provider() map[string]Oauth2x
- type ClientConfig
- type Oauth2x
- type Strava
- func (s *Strava) Client(ctx context.Context, token *oauth2.Token) *http.Client
- func (s *Strava) Exchange(ctx context.Context, code string) (*oauth2.Token, error)
- func (s *Strava) GetUser(ctx context.Context, token *oauth2.Token) (*model.User, error)
- func (s *Strava) Refresh(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error)
Constants ¶
View Source
const ( StravaSource = "strava" GithubSource = "github" )
Variables ¶
This section is empty.
Functions ¶
func InitProvider ¶
func InitProvider(cfg []*ClientConfig)
Types ¶
type ClientConfig ¶
Click to show internal directories.
Click to hide internal directories.