mem

package
v0.0.0-...-1f9e35f Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mem provides memory storage functionality for users.

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
}

func New

func New() *Store

func (*Store) Create

func (m *Store) Create(ctx context.Context, u user.User) error

func (*Store) Delete

func (m *Store) Delete(ctx context.Context, id string) error

func (*Store) Query

func (m *Store) Query(ctx context.Context, pageNumber int, rowsPerPage int) ([]user.User, error)

func (*Store) QueryByEmail

func (m *Store) QueryByEmail(ctx context.Context, email string) (user.User, error)

func (*Store) QueryByID

func (m *Store) QueryByID(ctx context.Context, id string) (user.User, error)

func (*Store) Update

func (m *Store) Update(ctx context.Context, u user.User) error

Jump to

Keyboard shortcuts

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