Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyPassword ¶
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
Click to show internal directories.
Click to hide internal directories.