Versions in this module Expand all Collapse all v1 v1.7.0 Nov 22, 2026 v1.6.0 Nov 19, 2026 v1.5.0 Nov 15, 2026 v1.4.0 Nov 12, 2026 v1.3.0 Nov 8, 2026 v1.2.2 Nov 7, 2026 v1.2.1 Nov 3, 2026 v1.2.0 Oct 31, 2026 v1.1.4 Nov 2, 2026 v1.1.3 Nov 1, 2026 v1.1.2 Nov 1, 2026 v1.1.1 Oct 31, 2026 Changes in this version + type ApproveUserResponse struct + Message string + User *UserDetail + type CreateUserRequest struct + CustomFields map[string]any + Email string + Name string + Role string + Username string + type CreateUserResponse struct + Message string + Password string + User *UserDetail + type DataExportMeta struct + Timestamp string + type DeleteAccountRequest struct + Confirmation string + type DeletedContentItem struct + ContentID int + ContentType string + DeletedAt string + DeletedBy string + ID int + Reason string + type EmailUpdateData struct + Message string + NewEmail string + type EmailUpdateRequest struct + CurrentPassword string + NewEmail string + type EmailUpdateResponse struct + Data *EmailUpdateData + Meta *ProfileResponseMeta + type Mailer interface + SendAccountCreatedEmail func(ctx context.Context, to, username, plainPassword string) error + SendUserApprovedEmail func(ctx context.Context, to, username string) error + SendUserRejectedEmail func(ctx context.Context, to, username string) error + SendUserSoftDeletedEmail func(ctx context.Context, to, username, reason string) error + SendUserSuspendedEmail func(ctx context.Context, to, username, reason string) error + SendUserUnsuspendedEmail func(ctx context.Context, to, username string) error + type MarkUserAsSpamResponse struct + Email string + Message string + type PasswordUpdateData struct + Message string + type PasswordUpdateRequest struct + CurrentPassword string + NewPassword string + type PasswordUpdateResponse struct + Data *PasswordUpdateData + Meta *ProfileResponseMeta + type PendingUser struct + CreatedAt time.Time + Email string + EmailVerified bool + ID int + ProfilePicture string + Username string + type ProfileData struct + Profile *ProfileInfo + type ProfileHandler struct + func NewProfileHandler(profileService userdomain.ProfileServiceInterface, ...) *ProfileHandler + func (h *ProfileHandler) ChangePassword(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) DeleteAccount(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) ExportUserData(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) GetProfile(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) GetUserFields(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) UpdateCustomFields(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) UpdateEmail(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) UpdateName(w http.ResponseWriter, r *http.Request) + func (h *ProfileHandler) VerifyEmailUpdate(w http.ResponseWriter, r *http.Request) + type ProfileInfo struct + CreatedAt time.Time + CustomFields map[string]any + Email string + ID int + Name string + ProfilePicture string + Role string + UpdatedAt time.Time + Username string + type ProfilePictureHandler struct + func NewProfilePictureHandler(service *profilepicture.Service, userRepo UserStore, logger kernel.Logger) *ProfilePictureHandler + func (h *ProfilePictureHandler) AdminDeleteUserPicture(w http.ResponseWriter, r *http.Request) + func (h *ProfilePictureHandler) AdminUploadUserPicture(w http.ResponseWriter, r *http.Request) + func (h *ProfilePictureHandler) DeleteProfilePicture(w http.ResponseWriter, r *http.Request) + func (h *ProfilePictureHandler) UploadProfilePicture(w http.ResponseWriter, r *http.Request) + type ProfileResponse struct + Data *ProfileData + Meta *ProfileResponseMeta + type ProfileResponseMeta struct + Timestamp string + type RejectUserResponse struct + Email string + Message string + Username string + type RestoreContentResponse struct + Content *RestoredContent + Message string + type RestoredContent struct + ID int + Type string + type SoftDeleteContentRequest struct + Confirmed bool + Reason string + type SoftDeleteStore interface + GetSoftDeletedContentByID func(ctx context.Context, id int) (*SoftDeletedContent, error) + GetSoftDeletedContentByUser func(ctx context.Context, userID int) ([]*SoftDeletedContent, error) + RestoreContent func(ctx context.Context, contentType string, contentID int) error + type SoftDeleteUserResponse struct + DeletedContentCount int + Message string + User *UserDetail + type SoftDeletedContent struct + ContentID int + ContentType string + DeletedAt string + DeletedBy int + HasReason bool + ID int + Reason string + type SuspendUserResponse struct + Message string + User *UserDetail + type UnsuspendUserResponse struct + Message string + User *UserDetail + type UpdateUserProfileRequest struct + CustomFields map[string]any + Email string + Name string + Role string + type UpdateUserProfileResponse struct + Message string + User *UserDetail + type UserDetail struct + CreatedAt time.Time + CustomFields map[string]any + Email string + ID int + ProfilePicture string + Role string + Status string + Username string + type UserInList struct + CreatedAt time.Time + CustomFields map[string]any + Email string + ID int + Name string + ProfilePicture string + Role string + Status string + Username string + type UserManagementHandler struct + func NewUserManagementHandler(userService *userdomain.UserManagementService, ...) *UserManagementHandler + func (h *UserManagementHandler) ApproveUser(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) CreateUser(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) GetAllUsers(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) GetPendingUsers(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) GetSoftDeletedContent(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) MarkUserAsSpam(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) RejectUser(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) RestoreContent(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) SoftDeleteUser(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) SuspendUser(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) UnsuspendUser(w http.ResponseWriter, r *http.Request) + func (h *UserManagementHandler) UpdateUser(w http.ResponseWriter, r *http.Request) + type UserStore interface + GetUserByID func(ctx context.Context, userID int) (*userdomain.User, error) + type VerifyEmailUpdateData struct + Email string + Message string + type VerifyEmailUpdateResponse struct + Data *VerifyEmailUpdateData + Meta *ProfileResponseMeta