Documentation ¶
Index ¶
- type TaskStore
- type UserStore
- func (u UserStore) Create(user *entities.User) error
- func (u UserStore) CreateOrUpdatePasswordReset(passwordReset entities.PasswordResets) error
- func (u UserStore) Delete(id string) error
- func (u UserStore) DeletePasswordReset(userId string) error
- func (u UserStore) GetAll(page, limit, sorts string) (users []entities.User, total int64, err error)
- func (u UserStore) GetByID(id string) (user entities.User, err error)
- func (u UserStore) GetByUsername(username string) (user entities.User, err error)
- func (u UserStore) GetIDFromPasswordReset(token, password string) (string, string, error)
- func (u UserStore) Login(username, password string) (user entities.User, err error)
- func (u UserStore) Update(user *entities.User) error
- func (u UserStore) UpdatePassword(id, currentPassword, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskStore ¶
type TaskStore struct {
// contains filtered or unexported fields
}
TaskStore ...
func (TaskStore) GetAll ¶
func (t TaskStore) GetAll(page, limit, sorts string) (tasks []entities.Task, total int64, err error)
GetAll gets all users in database.
func (TaskStore) GetAllRows ¶
GetAllRows gets all tasks in database.
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
UserStore type
func (UserStore) CreateOrUpdatePasswordReset ¶
func (u UserStore) CreateOrUpdatePasswordReset(passwordReset entities.PasswordResets) error
CreateOrUpdatePasswordReset add a reset password request in database or update it if a line already exists.
func (UserStore) DeletePasswordReset ¶
DeletePasswordReset deletes user password reset.
func (UserStore) GetAll ¶
func (u UserStore) GetAll(page, limit, sorts string) (users []entities.User, total int64, err error)
GetAll gets all users in database.
func (UserStore) GetByUsername ¶
GetByUsername returns a user from its username.
func (UserStore) GetIDFromPasswordReset ¶
GetIDFromPasswordReset update user password and delete password_resets line.
func (UserStore) UpdatePassword ¶
UpdatePassword updates user passwords.
Click to show internal directories.
Click to hide internal directories.