storage

package
v0.0.0-...-0026d00 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryStorage

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

func NewInMemoryStorage

func NewInMemoryStorage() *InMemoryStorage

func (*InMemoryStorage) LoadAccess

func (s *InMemoryStorage) LoadAccess(token string) (*oauth2.AccessInfo, error)

func (*InMemoryStorage) LoadAuthorize

func (s *InMemoryStorage) LoadAuthorize(code string) (*oauth2.AuthorizeInfo, error)

func (*InMemoryStorage) LoadClient

func (s *InMemoryStorage) LoadClient(id string) (oauth2.Client, error)

func (*InMemoryStorage) LoadRefresh

func (s *InMemoryStorage) LoadRefresh(token string) (*oauth2.AccessInfo, error)

func (*InMemoryStorage) RemoveAccess

func (s *InMemoryStorage) RemoveAccess(token string) error

func (*InMemoryStorage) RemoveAuthorize

func (s *InMemoryStorage) RemoveAuthorize(code string) error

func (*InMemoryStorage) RemoveClient

func (s *InMemoryStorage) RemoveClient(id string) error

func (*InMemoryStorage) RemoveRefresh

func (s *InMemoryStorage) RemoveRefresh(token string) error

func (*InMemoryStorage) SaveAccess

func (s *InMemoryStorage) SaveAccess(access *oauth2.AccessInfo) error

func (*InMemoryStorage) SaveAuthorize

func (s *InMemoryStorage) SaveAuthorize(authorize *oauth2.AuthorizeInfo) error

func (*InMemoryStorage) SaveClient

func (s *InMemoryStorage) SaveClient(client oauth2.Client) error

func (*InMemoryStorage) SaveRefresh

func (s *InMemoryStorage) SaveRefresh(access *oauth2.AccessInfo) error

Jump to

Keyboard shortcuts

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