Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Refresher ¶
type Refresher struct {
ClientID string
ClientSecret string
Endpoint string
Source scm.TokenSource
Client *http.Client
}
Refresher is an http.RoundTripper that refreshes oauth tokens, wrapping a base RoundTripper and refreshing the token if expired.
IMPORTANT the Refresher is NOT safe for concurrent use by multiple goroutines.
Click to show internal directories.
Click to hide internal directories.