Documentation ¶
Index ¶
- type OTPCacheService
- func (r OTPCacheService) Set(ctx context.Context, key string, otp string) error
- func (r OTPCacheService) SetForgetPassword(ctx context.Context, key string, otp string) error
- func (r OTPCacheService) Used(ctx context.Context, key string) error
- func (r OTPCacheService) UsedForgetPassword(ctx context.Context, key string) error
- func (r OTPCacheService) Validate(ctx context.Context, key string, otp string) error
- func (r OTPCacheService) ValidateForgetPassword(ctx context.Context, key string, otp string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OTPCacheService ¶
type OTPCacheService struct {
// contains filtered or unexported fields
}
func NewOTPCache ¶
func NewOTPCache(otpConfig config.OTP, cache port.OTPCache) OTPCacheService
func (OTPCacheService) SetForgetPassword ¶
func (OTPCacheService) UsedForgetPassword ¶
func (r OTPCacheService) UsedForgetPassword(ctx context.Context, key string) error
func (OTPCacheService) ValidateForgetPassword ¶
Click to show internal directories.
Click to hide internal directories.