Documentation ¶
Index ¶
- func GetUserService(repository repositories.IRepository) interfaces.IUser
- type UserService
- func (u *UserService) Authenticate(user *models.Login) (auth *models.LoginResponse, err error)
- func (u *UserService) Delete(id string) error
- func (u *UserService) Get(id string) (*models.User, error)
- func (u *UserService) Logout(id string) error
- func (u *UserService) Patch(user *models.User) (*models.User, error)
- func (u *UserService) Register(user *models.User) (*models.SignupResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserService ¶
func GetUserService(repository repositories.IRepository) interfaces.IUser
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func (*UserService) Authenticate ¶
func (u *UserService) Authenticate(user *models.Login) (auth *models.LoginResponse, err error)
func (*UserService) Delete ¶
func (u *UserService) Delete(id string) error
func (*UserService) Logout ¶
func (u *UserService) Logout(id string) error
func (*UserService) Register ¶
func (u *UserService) Register(user *models.User) (*models.SignupResponse, error)
Click to show internal directories.
Click to hide internal directories.