user

package
v0.0.0-...-96dbec4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyPassword

func VerifyPassword(hashedPassword string, userPassword string) error

Types

type Repository

type Repository interface {
	Create(u *entities.User) (user *entities.User, error *errors.ApplicationError)
	FindByEmail(email string) (user *entities.User, error *errors.ApplicationError)
}

func NewRepository

func NewRepository(collection *mongo.Collection) Repository

type Service

type Service interface {
	Create(u *entities.User) (user *entities.UserResponse, error *errors.ApplicationError)
	FindByEmail(email string) (user *entities.User, error *errors.ApplicationError)
}

func NewService

func NewService(r Repository) Service

Jump to

Keyboard shortcuts

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