memory

package
v0.0.0-...-e92ab92 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 3 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 implements usermodel.Storer

func New

func New() *Store

New returns a new usermodel.Storer

func (*Store) Create

func (s *Store) Create(u usermodel.User) (usermodel.User, error)

Create creates a new user

func (*Store) Delete

func (s *Store) Delete(u usermodel.User) (usermodel.User, error)

func (*Store) GetByEmail

func (s *Store) GetByEmail(email string) (usermodel.User, error)

func (*Store) GetByID

func (s *Store) GetByID(id uint64) (usermodel.User, error)

func (*Store) List

func (s *Store) List(filter ...usermodel.Filter) ([]usermodel.User, error)

func (*Store) UpdateByEmail

func (s *Store) UpdateByEmail(email string, u usermodel.User) (usermodel.User, error)

func (*Store) UpdateByID

func (s *Store) UpdateByID(id uint64, u usermodel.User) (usermodel.User, error)

Update updates an existing user

Jump to

Keyboard shortcuts

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