gmail

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTokenFromWeb

func GetTokenFromWeb(config *oauth2.Config) (*oauth2.Token, error)

Request a token from the web, then returns the retrieved token.

func GoogleConfigFromEnvVar

func GoogleConfigFromEnvVar(key string) (*oauth2.Config, error)

func GoogleConfigFromPath

func GoogleConfigFromPath(path string) (*oauth2.Config, error)

func LoadToken

func LoadToken(path string) (*oauth2.Token, error)

func LoadTokenFromEnv

func LoadTokenFromEnv(key string) (*oauth2.Token, error)

func SaveToken

func SaveToken(path string, token *oauth2.Token) error

Saves a token to a file path.

func TokenFromReader

func TokenFromReader(r io.Reader) (*oauth2.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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