Versions in this module Expand all Collapse all v0 v0.4.2 Apr 28, 2016 v0.4.0 Oct 26, 2015 Changes in this version + type Cache interface + PutToken func(*Token) error + Token func() (*Token, error) + type CacheFile string + func (f CacheFile) PutToken(tok *Token) error + func (f CacheFile) Token() (*Token, error) + type Config struct + AccessType string + ApprovalPrompt string + AuthURL string + ClientId string + ClientSecret string + RedirectURL string + Scope string + TokenCache Cache + TokenURL string + func (c *Config) AuthCodeURL(state string) string + type OAuthError struct + func (oe OAuthError) Error() string + type Token struct + AccessToken string + Expiry time.Time + Extra map[string]string + RefreshToken string + func (t *Token) Expired() bool + type Transport struct + Transport http.RoundTripper + func (t *Transport) AuthenticateClient() error + func (t *Transport) Client() *http.Client + func (t *Transport) Exchange(code string) (*Token, error) + func (t *Transport) Refresh() error + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)