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
Click to show internal directories.
Click to hide internal directories.