memory

package
v0.0.0-...-b557599 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasscodeStore

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

func NewPasscodeStore

func NewPasscodeStore() *PasscodeStore

func (*PasscodeStore) Create

func (s *PasscodeStore) Create(userID string) (string, error)

func (*PasscodeStore) Find

func (s *PasscodeStore) Find(t string) (string, error)

func (*PasscodeStore) Revoke

func (s *PasscodeStore) Revoke(t string) error

type SessionStore

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

func NewSessionStore

func NewSessionStore() *SessionStore

func (*SessionStore) Create

func (s *SessionStore) Create(userID string) (string, error)

func (*SessionStore) Find

func (s *SessionStore) Find(sessionID string) (string, error)

type UserStore

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

func NewUserStore

func NewUserStore() *UserStore

func (*UserStore) Create

func (s *UserStore) Create(firstName string, lastName string, email string) (*models.User, error)

func (*UserStore) Find

func (s *UserStore) Find(id string) (*models.User, error)

Jump to

Keyboard shortcuts

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