Documentation
¶
Index ¶
- type FakeServiceEngagement
- func (f *FakeServiceEngagement) GenerateAndSendOTP(ctx context.Context, phone string, appID *string) (*profileutils.OtpResponse, error)
- func (f *FakeServiceEngagement) ResolveDefaultNudgeByTitle(ctx context.Context, UID string, flavour feedlib.Flavour, nudgeTitle string) error
- func (f *FakeServiceEngagement) SendMail(ctx context.Context, email string, message string, subject string) error
- func (f *FakeServiceEngagement) SendRetryOTP(ctx context.Context, msisdn string, retryStep int, appID *string) (*profileutils.OtpResponse, error)
- func (f *FakeServiceEngagement) SendSMS(ctx context.Context, phoneNumbers []string, message string) error
- func (f *FakeServiceEngagement) VerifyEmailOTP(ctx context.Context, email, OTP string) (bool, error)
- func (f *FakeServiceEngagement) VerifyOTP(ctx context.Context, phone, OTP string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeServiceEngagement ¶
type FakeServiceEngagement struct { ResolveDefaultNudgeByTitleFn func(ctx context.Context, UID string, flavour feedlib.Flavour, nudgeTitle string) error SendMailFn func(ctx context.Context, email string, message string, subject string) error GenerateAndSendOTPFn func( ctx context.Context, phone string, appID *string, ) (*profileutils.OtpResponse, error) SendRetryOTPFn func( ctx context.Context, msisdn string, retryStep int, appID *string, ) (*profileutils.OtpResponse, error) VerifyOTPFn func(ctx context.Context, phone, OTP string) (bool, error) VerifyEmailOTPFn func(ctx context.Context, email, OTP string) (bool, error) SendSMSFn func(ctx context.Context, phoneNumbers []string, message string) error }
FakeServiceEngagement is an `engagement` service mock .
func (*FakeServiceEngagement) GenerateAndSendOTP ¶
func (f *FakeServiceEngagement) GenerateAndSendOTP( ctx context.Context, phone string, appID *string, ) (*profileutils.OtpResponse, error)
GenerateAndSendOTP ...
func (*FakeServiceEngagement) ResolveDefaultNudgeByTitle ¶
func (f *FakeServiceEngagement) ResolveDefaultNudgeByTitle( ctx context.Context, UID string, flavour feedlib.Flavour, nudgeTitle string, ) error
ResolveDefaultNudgeByTitle ...
func (*FakeServiceEngagement) SendMail ¶
func (f *FakeServiceEngagement) SendMail( ctx context.Context, email string, message string, subject string, ) error
SendMail ...
func (*FakeServiceEngagement) SendRetryOTP ¶
func (f *FakeServiceEngagement) SendRetryOTP( ctx context.Context, msisdn string, retryStep int, appID *string, ) (*profileutils.OtpResponse, error)
SendRetryOTP ...
func (*FakeServiceEngagement) SendSMS ¶
func (f *FakeServiceEngagement) SendSMS(ctx context.Context, phoneNumbers []string, message string) error
SendSMS ...
func (*FakeServiceEngagement) VerifyEmailOTP ¶
func (f *FakeServiceEngagement) VerifyEmailOTP(ctx context.Context, email, OTP string) (bool, error)
VerifyEmailOTP ...
Click to show internal directories.
Click to hide internal directories.