Documentation
¶
Index ¶
- type ChangePasswordUseCase
- type RequestEmailChangeUseCase
- type RequestPasswordResetUseCase
- type SendEmailVerificationUseCase
- type SignInUseCase
- func (uc *SignInUseCase) GetSessionByID(ctx context.Context, sessionID string) (*models.Session, error)
- func (uc *SignInUseCase) GetUserByID(ctx context.Context, userID string) (*models.User, error)
- func (uc *SignInUseCase) SignIn(ctx context.Context, email string, password string, callbackURL *string, ...) (*types.SignInResult, error)
- type SignUpUseCase
- type UseCases
- type VerifyEmailUseCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordUseCase ¶
type ChangePasswordUseCase struct {
Logger models.Logger
PluginConfig types.EmailPasswordPluginConfig
UserService rootservices.UserService
AccountService rootservices.AccountService
VerificationService rootservices.VerificationService
TokenService rootservices.TokenService
PasswordService rootservices.PasswordService
MailerService rootservices.MailerService
EventBus models.EventBus
}
func (*ChangePasswordUseCase) ChangePassword ¶
type RequestEmailChangeUseCase ¶
type RequestEmailChangeUseCase struct {
Logger models.Logger
GlobalConfig *models.Config
PluginConfig types.EmailPasswordPluginConfig
UserService rootservices.UserService
VerificationService rootservices.VerificationService
TokenService rootservices.TokenService
MailerService rootservices.MailerService
}
func (*RequestEmailChangeUseCase) RequestChange ¶
type RequestPasswordResetUseCase ¶
type RequestPasswordResetUseCase struct {
Logger models.Logger
GlobalConfig *models.Config
PluginConfig types.EmailPasswordPluginConfig
UserService rootservices.UserService
VerificationService rootservices.VerificationService
TokenService rootservices.TokenService
MailerService rootservices.MailerService
}
func (*RequestPasswordResetUseCase) RequestReset ¶
type SendEmailVerificationUseCase ¶
type SendEmailVerificationUseCase struct {
GlobalConfig *models.Config
PluginConfig types.EmailPasswordPluginConfig
Logger models.Logger
UserService rootservices.UserService
VerificationService rootservices.VerificationService
TokenService rootservices.TokenService
MailerService rootservices.MailerService
}
type SignInUseCase ¶
type SignInUseCase struct {
GlobalConfig *models.Config
PluginConfig types.EmailPasswordPluginConfig
Logger models.Logger
UserService rootservices.UserService
AccountService rootservices.AccountService
SessionService rootservices.SessionService
TokenService rootservices.TokenService
PasswordService rootservices.PasswordService
EventBus models.EventBus
}
func (*SignInUseCase) GetSessionByID ¶
func (*SignInUseCase) GetUserByID ¶
type SignUpUseCase ¶
type SignUpUseCase struct {
GlobalConfig *models.Config
PluginConfig types.EmailPasswordPluginConfig
Logger models.Logger
UserService rootservices.UserService
AccountService rootservices.AccountService
SessionService rootservices.SessionService
TokenService rootservices.TokenService
PasswordService rootservices.PasswordService
EventBus models.EventBus
}
type UseCases ¶
type UseCases struct {
SignUpUseCase *SignUpUseCase
SignInUseCase *SignInUseCase
VerifyEmailUseCase *VerifyEmailUseCase
SendEmailVerificationUseCase *SendEmailVerificationUseCase
RequestPasswordResetUseCase *RequestPasswordResetUseCase
ChangePasswordUseCase *ChangePasswordUseCase
RequestEmailChangeUseCase *RequestEmailChangeUseCase
}
type VerifyEmailUseCase ¶
type VerifyEmailUseCase struct {
PluginConfig types.EmailPasswordPluginConfig
Logger models.Logger
UserService rootservices.UserService
AccountService rootservices.AccountService
VerificationService rootservices.VerificationService
TokenService rootservices.TokenService
MailerService rootservices.MailerService
EventBus models.EventBus
}
func (*VerifyEmailUseCase) VerifyEmail ¶
func (uc *VerifyEmailUseCase) VerifyEmail(ctx context.Context, tokenStr string) (models.VerificationType, error)
Click to show internal directories.
Click to hide internal directories.