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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.