googleauthutil

package module
v0.0.0-...-c213e43 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

googleauthutil

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromJSON

func ConfigFromJSON(filename string, scope ...string) (*oauth2.Config, error)

Types

type Authorizer

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

func NewAuthorizer

func NewAuthorizer(config *oauth2.Config, tokenFilename string) *Authorizer

func (*Authorizer) AuthCodeUrl

func (a *Authorizer) AuthCodeUrl() string

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(ctx context.Context, code string) (*http.Client, error)

func (*Authorizer) Restore

func (a *Authorizer) Restore(ctx context.Context) (*http.Client, error)

Jump to

Keyboard shortcuts

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