token

package
v0.0.0-...-ffea89a Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFirestoreStore

func NewFirestoreStore(client *firestore.Client, opts ...FirestoreStoreOption) *firestoreStore

Types

type FirestoreStoreOption

type FirestoreStoreOption func(*firestoreStore)

func WithTokenID

func WithTokenID(ID string) FirestoreStoreOption

type InMemoryStore

type InMemoryStore struct {
	Token string
}

func (*InMemoryStore) GetToken

func (s *InMemoryStore) GetToken(ctx context.Context) (string, error)

func (*InMemoryStore) SetToken

func (s *InMemoryStore) SetToken(ctx context.Context, token string) error

Jump to

Keyboard shortcuts

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