mem

package
v0.0.0-...-264fe26 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemTokenStore

type InMemTokenStore struct {
	Logger logr.Logger
	Store  *MemStore
}

func (*InMemTokenStore) DecreaseAttemptAndLoadLatest

func (s *InMemTokenStore) DecreaseAttemptAndLoadLatest(ctx context.Context, ownerID string) (*token.CodeToken, error)

func (*InMemTokenStore) Save

func (s *InMemTokenStore) Save(ctx context.Context, tkn *token.CodeToken) error

type MemStore

type MemStore struct {
	Storage map[string]memToken
	// contains filtered or unexported fields
}

func NewMemStore

func NewMemStore() *MemStore

Jump to

Keyboard shortcuts

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