memory

package
v0.0.0-...-2847b59 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsersAllKey = "Users:all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

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

UserRepository concrete implementation of in-memory db

func NewUserRepository

func NewUserRepository() *UserRepository

func (*UserRepository) All

func (r *UserRepository) All() ([]*domain.User, error)

func (*UserRepository) Create

func (r *UserRepository) Create(u *domain.User) error

func (*UserRepository) GetById

func (r *UserRepository) GetById(id string) (*domain.User, error)

func (*UserRepository) Update

func (r *UserRepository) Update(u *domain.User) error

Jump to

Keyboard shortcuts

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