memory

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 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 Store

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

Store is an in-memory implementation of auth.UserStore.

func NewStore

func NewStore() *Store

NewStore returns a new in-memory user store.

func (*Store) Create

func (s *Store) Create(_ context.Context, user *auth.User) error

func (*Store) GetByEmail

func (s *Store) GetByEmail(_ context.Context, email string) (*auth.User, error)

func (*Store) GetByID

func (s *Store) GetByID(_ context.Context, id string) (*auth.User, error)

func (*Store) List

func (s *Store) List(_ context.Context) ([]auth.User, error)

func (*Store) UpdateRole

func (s *Store) UpdateRole(_ context.Context, id, role string) error

Jump to

Keyboard shortcuts

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