Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetUserDTO ¶
type GetUserDTO struct {
UserID string
}
type RegisterDTO ¶
type RegisterDTO struct {
FirstName, LastName, Email, Password string
}
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo repository.UserRepository, hasher password.Hasher, event *pubsub.Event) UserService
func (UserService) GetUser ¶
func (s UserService) GetUser(ctx context.Context, dto GetUserDTO) (*entity.User, error)
func (UserService) Register ¶
func (s UserService) Register(ctx context.Context, dto RegisterDTO) error
Click to show internal directories.
Click to hide internal directories.