store

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientCredentialsConfig

func NewClientCredentialsConfig(config config.Credentials) *clientcredentials.Config

Types

type MemoryStore

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

func NewMemoryStore

func NewMemoryStore(c *clientcredentials.Config) *MemoryStore

func (*MemoryStore) BackgroundUpdate

func (s *MemoryStore) BackgroundUpdate(interval int)

func (*MemoryStore) GetToken

func (s *MemoryStore) GetToken() (*oauth2.Token, error)

type Store

type Store interface {
	GetToken() (*oauth2.Token, error)
	BackgroundUpdate(interval int)
}

Jump to

Keyboard shortcuts

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