Documentation
¶
Index ¶
- func DeleteUser(username string) error
- func InitLogger(logger *logrus.Logger)
- func Notify(username string, title string, description string, level NotificationLevel) error
- func RemoveAvatar(username string) error
- func UploadAvatar(username string, filename string, file multipart.File) error
- func ValidateCredentials(username string, password string) (bool, error)
- type NotificationLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
Removes a user, also removes everything that depends on the user (permissions, switchPermissions)
func InitLogger ¶
func Notify ¶
func Notify(username string, title string, description string, level NotificationLevel) error
func RemoveAvatar ¶
Will remove the current avatar of a user unless it is set to `default`
func UploadAvatar ¶
Accepts a username, filename and multipart file and creates and processes the file
Types ¶
type NotificationLevel ¶
type NotificationLevel uint8
const ( NotificationLevelInfo NotificationLevel = 1 NotificationLevelWarn NotificationLevel = 2 NotificationLevelError NotificationLevel = 3 )
Click to show internal directories.
Click to hide internal directories.