Versions in this module Expand all Collapse all v0 v0.2.0 Jul 25, 2014 Changes in this version + type Config struct + func NewConfig(opts *Options, authURL, tokenURL string) (*Config, error) + func (c *Config) AuthCodeURL(state string) (authURL string) + func (c *Config) FetchToken(existing *Token) (*Token, error) + func (c *Config) NewTransport() Transport + func (c *Config) NewTransportWithCode(exchangeCode string) (Transport, error) + type JWTConfig struct + func NewJWTConfig(opts *JWTOptions, aud string) (*JWTConfig, error) + func (c *JWTConfig) FetchToken(existing *Token) (token *Token, err error) + func (c *JWTConfig) NewTransport() Transport + func (c *JWTConfig) NewTransportWithUser(user string) Transport + type JWTOptions struct + Email string + PemFilename string + Scopes []string + type Options struct + AccessType string + ApprovalPrompt string + ClientID string + ClientSecret string + RedirectURL string + Scopes []string + type Token struct + AccessToken string + Expiry time.Time + Extra map[string]string + RefreshToken string + Subject string + TokenType string + func (t *Token) Expired() bool + type TokenFetcher interface + FetchToken func(existing *Token) (*Token, error) + type Transport interface + RefreshToken func() error + RoundTrip func(*http.Request) (*http.Response, error) + SetToken func(token *Token) + Token func() *Token + func NewAuthorizedTransport(origTransport http.RoundTripper, fetcher TokenFetcher, token *Token) Transport