Documentation
¶
Index ¶
- type UserSvc
- func (svc UserSvc) CreateUser(email, password string) (entities.User, error)
- func (svc UserSvc) GetByVerificationToken(verificationToken string) (entities.User, error)
- func (svc UserSvc) GetUserByEmail(email string) (entities.User, error)
- func (svc UserSvc) GetUserByID(id string) (entities.User, error)
- func (svc UserSvc) RemoveUser(id string) error
- func (svc UserSvc) SetVerified(id identifier.ID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserSvc ¶
type UserSvc struct {
// contains filtered or unexported fields
}
UserSvc represents a user services
func NewUserSvc ¶
func NewUserSvc(userRepo contracts.UserRepository, notificationSvc contracts.NotificationService) *UserSvc
NewUserSvc creates a new UserSvc
func (UserSvc) CreateUser ¶
CreateUser creates a new user record given their email and password and returns the user record or returns an error
func (UserSvc) GetByVerificationToken ¶
GetByVerificationToken gets a user provided their verification token
func (UserSvc) GetUserByEmail ¶
GetUserByEmail retrieve a user record given their email address or returns an error
func (UserSvc) GetUserByID ¶
GetUserByID retrieves a user given their id or returns an error
func (UserSvc) RemoveUser ¶
RemoveUser remeves a user record
func (UserSvc) SetVerified ¶
func (svc UserSvc) SetVerified(id identifier.ID) error
Click to show internal directories.
Click to hide internal directories.