Documentation ¶
Index ¶
- func DeleteAvatar(u *user_model.User) error
- func DeleteInactiveUsers(ctx context.Context, olderThan time.Duration) error
- func DeleteUser(ctx context.Context, u *user_model.User, purge bool) error
- func RenameUser(ctx context.Context, u *user_model.User, newUserName string) error
- func UploadAvatar(u *user_model.User, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAvatar ¶
func DeleteAvatar(u *user_model.User) error
DeleteAvatar deletes the user's custom avatar.
func DeleteInactiveUsers ¶
DeleteInactiveUsers deletes all inactive users and email addresses.
func DeleteUser ¶
DeleteUser completely and permanently deletes everything of a user, but issues/comments/pulls will be kept and shown as someone has been deleted, unless the user is younger than USER_DELETE_WITH_COMMENTS_MAX_DAYS.
func RenameUser ¶
RenameUser renames a user
func UploadAvatar ¶
func UploadAvatar(u *user_model.User, data []byte) error
UploadAvatar saves custom avatar for user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.