Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultUserAgent string
Functions ¶
func ConfigureOAuth2 ¶ added in v1.2.3
func ConfigureOAuth2(cfg *viper.Viper, ctx context.Context, transport http.RoundTripper) (http.RoundTripper, error)
ConfigureOAuth2 checks the supplied to configuration to see if the (possibly nil) transport needs to be wrapped to perform authentication. The context is used for token management if necessary.
func DefaultConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.