Discover Packages
github.com/go-acd/acd
token
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jun 28, 2015
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package token represents an oauth2.TokenSource which has the ability to
refresh the access token through the oauth server.
Source provides a Source with support for refreshing from the acd server.
New returns a new Source implementing oauth2.TokenSource. The path must
exist on the filesystem and must be of permissions 0600.
Token returns an oauth2.Token. If the cached token (in (*Source).path) has
expired, it will fetch the token from the server and cache it before
returning it.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.