memory

package
v0.0.0-...-00d00b2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

func New

func New(logger zerolog.Logger) *Memory

func (*Memory) Create

func (r *Memory) Create(ctx context.Context, m map[string]interface{}) (usr *model.Storage, err error)

func (*Memory) UserByEmail

func (r *Memory) UserByEmail(ctx context.Context, email string) (usr *model.Storage, err error)

func (*Memory) UserByID

func (r *Memory) UserByID(ctx context.Context, id int) (usr *model.Storage, err error)

func (*Memory) UserByUsername

func (r *Memory) UserByUsername(ctx context.Context, username string) (usr *model.Storage, err error)

Jump to

Keyboard shortcuts

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