user

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Index

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

func DeleteInactiveUsers(ctx context.Context, olderThan time.Duration) error

DeleteInactiveUsers deletes all inactive users and email addresses.

func DeleteUser

func DeleteUser(ctx context.Context, u *user_model.User, purge bool) error

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

func RenameUser(ctx context.Context, u *user_model.User, newUserName string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL