Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { GetUserForName(name string) (core.User, error) SearchUsers(prefix string) ([]core.User, error) GetUserForID(id int) (core.User, error) AuthenticateUser(username, password string) (int, error) ChangePassword(userid int, oldPassword, newPassword string) error UpdateOnlineTimestamp(userCtx int) error DeleteAccount(userID int) error CreateAccount(newUser core.User, password, serverAddr string) error ConfirmAccount(token string) (string, error) ResetPassword(recoveryUUID, newPassword string) (string, error) SendPasswordResetMail(emailAddress, baseURL, language string) error SaveAvatar(userID int, pathPrefix, fileType string, buffer []byte) error DeleteAvatar(pathPrefix string, userID int) error GetAvatar(userID int, pathPrefix string, nodefault bool) (string, time.Time, error) }
func NewService ¶
NewService creates a new user managment service.
Click to show internal directories.
Click to hide internal directories.