repository

package
v0.0.0-...-60b14e4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MONGODB_USER_DB = "MONGODB_USER_DB"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	CreateUser(
		userDomain 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