repository

package
v0.0.0-...-3631afa Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MONGODB_COLLECTION = "MONGODB_COLLECTION"
)

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)
	FindAllUsers() ([]model.UserDomainInterface, *rest_err.RestErr)
	FindUserById(
		ID string,
	) (model.UserDomainInterface, *rest_err.RestErr)
	FindUserByEmail(
		ID string,
	) (model.UserDomainInterface, *rest_err.RestErr)
	DeleteUser(string) *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