Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("user not found")
ErrUserNotFound is the error returned when a user cannot be found.
Functions ¶
This section is empty.
Types ¶
type UserStore ¶
type UserStore interface { Create(user *modeluser.User) error GetUserByEmail(email string) (*modeluser.User, error) GetAllUsers() ([]modeluser.User, error) Update(user *modeluser.User) error Delete(id uuid.UUID) error GetUserByUUID(id uuid.UUID) (*modeluser.User, error) CheckLastLogin(id uuid.UUID) (bool, error) EmailVerified(email string) (bool, error) UpdateLastLogin(userID uuid.UUID, lastLogin *time.Time) error IsEmailExists(email string) bool IsEmailExistsForOtherUser(email string, excludeUserID uuid.UUID) bool Restore(id uuid.UUID) error UpdateOmitFields(user *modeluser.User, omitFields ...string) error SoftDelete(id uuid.UUID) error IsSoftDeleted(userID uuid.UUID) (bool, error) }
UserStore defines the interface for user storage operations
func NewUserStore ¶
NewUserStore creates a new instance of a user store
Click to show internal directories.
Click to hide internal directories.