Documentation
¶
Index ¶
- func Module(c *di.Container)
- type Service
- func (s *Service) Create(ctx context.Context, name, email string) (*users.User, error)
- func (s *Service) CreateWithPassword(ctx context.Context, name, password, email string) (*users.User, error)
- func (s *Service) SendEmailVerification(ctx context.Context, userID string) error
- func (s *Service) SendMagicLink(ctx context.Context, user *users.User) error
- func (s *Service) VerifyEmail(ctx context.Context, userID string, rawToken string) (*users.User, error)
- func (s *Service) VerifyMagicLink(ctx context.Context, user *users.User, code string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
*service.UserSerice
// contains filtered or unexported fields
}
func New ¶
func New( userService *service.UserSerice, logger *zap.Logger, userRepo db_user.Repository, jwtService *service_jwt.Service, transactionalEmailSender transactional.EmailSender, onetimeService *service_onetime.Service, analyticsClient analytics.Client, ) *Service
func (*Service) CreateWithPassword ¶
func (*Service) SendEmailVerification ¶
func (*Service) SendMagicLink ¶
func (*Service) VerifyEmail ¶
Click to show internal directories.
Click to hide internal directories.