Documentation ¶
Index ¶
- type User
- func (u *User) ChangeUserPassword(id string, passwd string) error
- func (u *User) ChangeUserSettings(id string, settings map[string]string) error
- func (u *User) CreateUser(user models.User) (models.User, error)
- func (u *User) GetAllUsers() ([]models.User, error)
- func (u *User) GetUserById(id string) (models.User, error)
- func (u *User) GetUserByUsername(username string) (models.User, error)
- func (u *User) UpdateUserData(id string, fullname string, email string, isadmin bool, iswriter bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) ChangeUserSettings ¶
ChangeUserSettings(id string, settings map[string]string) error
func (*User) CreateUser ¶
CreateUser(user models.User) (models.User, error)
func (*User) GetUserById ¶
GetUserById(id string) (models.User, error)
func (*User) GetUserByUsername ¶
GetUser(username string) (models.User, error)
Click to show internal directories.
Click to hide internal directories.