Documentation ¶
Index ¶
- type FakeServiceOTP
- func (f *FakeServiceOTP) EmailVerificationOtp(ctx context.Context, email *string) (string, error)
- func (f *FakeServiceOTP) GenerateAndSendOTP(ctx context.Context, msisdn string, appID *string) (string, error)
- func (f *FakeServiceOTP) GenerateOTP(ctx context.Context) (string, error)
- func (f *FakeServiceOTP) GenerateRetryOTP(ctx context.Context, msisdn *string, retryStep int, appID *string) (string, error)
- func (f *FakeServiceOTP) SaveOTPToFirestore(otp dto.OTP) error
- func (f *FakeServiceOTP) SendOTPToEmail(ctx context.Context, msisdn, email *string, appID *string) (string, error)
- func (f *FakeServiceOTP) SendTemporaryPIN(ctx context.Context, input dto.TemporaryPIN) error
- func (f *FakeServiceOTP) VerifyEmailOtp(ctx context.Context, email, verificationCode *string) (bool, error)
- func (f *FakeServiceOTP) VerifyOtp(ctx context.Context, msisdn, verificationCode *string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeServiceOTP ¶
type FakeServiceOTP struct { GenerateAndSendOTPFn func(ctx context.Context, msisdn string, appID *string) (string, error) SendOTPToEmailFn func(ctx context.Context, msisdn, email *string, appID *string) (string, error) SaveOTPToFirestoreFn func(otp dto.OTP) error VerifyOtpFn func(ctx context.Context, msisdn, verificationCode *string) (bool, error) VerifyEmailOtpFn func(ctx context.Context, email, verificationCode *string) (bool, error) GenerateRetryOTPFn func(ctx context.Context, msisdn *string, retryStep int, appID *string) (string, error) EmailVerificationOtpFn func(ctx context.Context, email *string) (string, error) GenerateOTPFn func(ctx context.Context) (string, error) SendTemporaryPINFn func(ctx context.Context, input dto.TemporaryPIN) error }
FakeServiceOTP is an interface that defines all interactions with the mock OTP service
func (*FakeServiceOTP) EmailVerificationOtp ¶
EmailVerificationOtp ...
func (*FakeServiceOTP) GenerateAndSendOTP ¶
func (f *FakeServiceOTP) GenerateAndSendOTP(ctx context.Context, msisdn string, appID *string) (string, error)
GenerateAndSendOTP ...
func (*FakeServiceOTP) GenerateOTP ¶
func (f *FakeServiceOTP) GenerateOTP(ctx context.Context) (string, error)
GenerateOTP ...
func (*FakeServiceOTP) GenerateRetryOTP ¶
func (f *FakeServiceOTP) GenerateRetryOTP(ctx context.Context, msisdn *string, retryStep int, appID *string) (string, error)
GenerateRetryOTP ...
func (*FakeServiceOTP) SaveOTPToFirestore ¶
func (f *FakeServiceOTP) SaveOTPToFirestore(otp dto.OTP) error
SaveOTPToFirestore ...
func (*FakeServiceOTP) SendOTPToEmail ¶
func (f *FakeServiceOTP) SendOTPToEmail(ctx context.Context, msisdn, email *string, appID *string) (string, error)
SendOTPToEmail ...
func (*FakeServiceOTP) SendTemporaryPIN ¶
func (f *FakeServiceOTP) SendTemporaryPIN(ctx context.Context, input dto.TemporaryPIN) error
SendTemporaryPIN ...
func (*FakeServiceOTP) VerifyEmailOtp ¶
func (f *FakeServiceOTP) VerifyEmailOtp(ctx context.Context, email, verificationCode *string) (bool, error)
VerifyEmailOtp ...
Click to show internal directories.
Click to hide internal directories.