userrepo

package
v0.0.0-...-76732a0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	AddUser(string, string) (domain.User, error)
	GetUser(string) (domain.User, error)
	UpdateUser(string, domain.User) error
}

func NewMongoRepo

func NewMongoRepo(userClient user.MongoClient) UserRepository

type UserRepositoryMock

type UserRepositoryMock struct{}

func (*UserRepositoryMock) AddUser

func (urm *UserRepositoryMock) AddUser(email, password string) (domain.User, error)

func (*UserRepositoryMock) GetUser

func (urm *UserRepositoryMock) GetUser(email string) (domain.User, error)

func (*UserRepositoryMock) UpdateUser

func (urm *UserRepositoryMock) UpdateUser(userID string, _ domain.User) error

Jump to

Keyboard shortcuts

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