Documentation ¶
Index ¶
- type UserStore
- func (u UserStore) DeleteUser(id string) error
- func (u UserStore) GetAllUsers() ([]entities.User, error)
- func (u UserStore) GetUser(id string) (user entities.User, err error)
- func (u UserStore) Login(username, password string) (user entities.User, err error)
- func (u UserStore) Register(user *entities.User) error
- func (u UserStore) UpdateUser(id string, userForm *entities.UserForm) (user entities.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserStore ¶
type UserStore struct {
// contains filtered or unexported fields
}
UserStore ...
func (UserStore) DeleteUser ¶
DeleteUser deletes a user from database.
func (UserStore) GetAllUsers ¶
GetAllUsers lists all users.
Click to show internal directories.
Click to hide internal directories.