Documentation
¶
Index ¶
- func DeleteDocsAPIKey() error
- func DeleteInboxCredentials() error
- func HTTPClient(ctx context.Context, clientID, clientSecret string) *http.Client
- func LoadDocsAPIKey() (string, error)
- func LoadInboxCredentials() (appID, appSecret string, err error)
- func StoreDocsAPIKey(key string) error
- func StoreInboxCredentials(appID, appSecret string) error
- func TokenSource(ctx context.Context, clientID, clientSecret string) oauth2.TokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDocsAPIKey ¶
func DeleteDocsAPIKey() error
func DeleteInboxCredentials ¶
func DeleteInboxCredentials() error
func HTTPClient ¶
HTTPClient returns an *http.Client that injects Bearer tokens automatically.
func LoadDocsAPIKey ¶
func LoadInboxCredentials ¶
func StoreDocsAPIKey ¶
func StoreInboxCredentials ¶
func TokenSource ¶
func TokenSource(ctx context.Context, clientID, clientSecret string) oauth2.TokenSource
TokenSource returns an oauth2 token source that auto-fetches and refreshes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.