cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearToken

func ClearToken() error

func GetCacheDir

func GetCacheDir() string

func GetTokenPath

func GetTokenPath() string

func SaveToken

func SaveToken(cache *TokenCache) error

Types

type TokenCache

type TokenCache struct {
	UnscopedToken string    `json:"unscoped_token"`
	IDToken       string    `json:"id_token"`
	RefreshToken  string    `json:"refresh_token"`
	ExpiresAt     time.Time `json:"expires_at"`
	Domain        string    `json:"domain"`
	Region        string    `json:"region"`
}

func LoadToken

func LoadToken() (*TokenCache, error)

Jump to

Keyboard shortcuts

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