Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseRepository ¶
type DatabaseRepository interface { CreateUser(user models.User) (*string, error) GetAllUsers() ([]*models.User, error) GetUserById(id string) (*models.User, error) GetUserByUsername(username string) (*models.User, error) UpdateUser(id string, user models.User) error UpdatePasswordResetToken(id string, user models.User) error }
func NewRepo ¶
func NewRepo(app *config.Application, conn *mongo.Database) DatabaseRepository
Click to show internal directories.
Click to hide internal directories.