user

package
v0.0.0-...-351ec72 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	CreateUser(user *entities.User) (*entities.User, error)
	FindByEmail(email string) (*entities.User, error)
}

func NewRepo

func NewRepo(collection *mongo.Collection) Repository

type Service

type Service interface {
	InsertUser(user *entities.User) (*entities.User, error)
	SignIn(email string, password string) (*entities.User, error)
}

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