service

package
v0.0.0-...-03ef17d Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService struct {
	*mongo.Collection
}

func ProvideUserService

func ProvideUserService(db *mongo.Database) UserService

func (*UserService) CreateNewUser

func (service *UserService) CreateNewUser(user dto.InsertUser) (*models.User, error)

func (*UserService) GetUserByEmail

func (service *UserService) GetUserByEmail(email string) (*models.User, error)

Jump to

Keyboard shortcuts

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