cache

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenCache

type TokenCache interface {
	// SaveToken saves the token securely to cache.
	SaveToken(token *oauth2.Token) error

	// Retrieves the token from the cache.
	GetToken() (*oauth2.Token, error)
}

TokenCache defines the interface needed to cache and retrieve oauth tokens.

type TokenCacheInMemoryProvider

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

func (TokenCacheInMemoryProvider) GetToken

func (t TokenCacheInMemoryProvider) GetToken() (*oauth2.Token, error)

func (*TokenCacheInMemoryProvider) SaveToken

func (t *TokenCacheInMemoryProvider) SaveToken(token *oauth2.Token) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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