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