mock

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

func (f *FakeServiceOTP) EmailVerificationOtp(ctx context.Context, email *string) (string, error)

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 ...

func (*FakeServiceOTP) VerifyOtp

func (f *FakeServiceOTP) VerifyOtp(ctx context.Context, msisdn, verificationCode *string) (bool, error)

VerifyOtp ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL