repository

package
v0.0.0-...-8c7e8b1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MONGODB_USER_COLLECTION = "MONGODB_USER_COLLECTION"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	CreateUser(model.UserDomainInterface) (model.UserDomainInterface, *rest_err.RestErr)
	UpdateUser(userId string, userDomain model.UserDomainInterface) *rest_err.RestErr
	DeleteUser(userId string) *rest_err.RestErr
	FindUserByEmail(email string) (model.UserDomainInterface, *rest_err.RestErr)
	FindUserByEmailAndPassword(email string, password string) (model.UserDomainInterface, *rest_err.RestErr)
	FindUserById(id string) (model.UserDomainInterface, *rest_err.RestErr)
}

func NewUserRepository

func NewUserRepository(database *mongo.Database) UserRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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