internal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOAuthConfig added in v0.0.2

func GetOAuthConfig() oauth2.Config

Types

type CachedTokenSource

type CachedTokenSource struct {
	// contains filtered or unexported fields
}

func GetTokenSource

func GetTokenSource(config oauth2.Config) (context.Context, CachedTokenSource)

func NewCachedTokenSource

func NewCachedTokenSource(ctx context.Context, config oauth2.Config) CachedTokenSource

func (CachedTokenSource) Token

func (ts CachedTokenSource) Token() (*oauth2.Token, error)

type GoogleAuthTokenSource

type GoogleAuthTokenSource struct {
	Config oauth2.Config
	// contains filtered or unexported fields
}

func NewGoogleTokenSource

func NewGoogleTokenSource(ctx context.Context) GoogleAuthTokenSource

func (GoogleAuthTokenSource) Token

func (ts GoogleAuthTokenSource) Token() (token *oauth2.Token, err error)

Jump to

Keyboard shortcuts

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