tokensource

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v1.10.0

Debug returns an oauth2.TokenSource that will log timing info to w

func FileCache

func FileCache(src oauth2.TokenSource, app, name string, scopes ...string) oauth2.TokenSource

FileCache returns an oauth2.TokenSource that will cache tokens in the filesystem. On unix systems this will be in $XDG_DATA_HOME/<app> (or ~/.local/share/<app>). On windows systems this will be in %%LOCALAPPDATA%%/<app> (or C:\Users\<username>\AppData\Local\<app>).

func Log

Log returns an oauth2.TokenSource that will log debug information to the writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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