Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶ added in v1.10.0
func Debug(w io.Writer, src oauth2.TokenSource) oauth2.TokenSource
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 ¶
func Log(w io.Writer, src oauth2.TokenSource) oauth2.TokenSource
Log returns an oauth2.TokenSource that will log debug information to the writer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.