Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v1.2.93 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGateway added in v1.1.33

type FakeGateway struct {
	mock.Mock
}

func (*FakeGateway) Call added in v1.1.33

func (f *FakeGateway) Call(phone *otp.Phone, code string, customMessage string) (string, string, error)

func (*FakeGateway) GetCode added in v1.1.33

func (f *FakeGateway) GetCode() string

func (*FakeGateway) GetName added in v1.1.33

func (f *FakeGateway) GetName() string

func (*FakeGateway) GetPhonePrefixes added in v1.1.33

func (f *FakeGateway) GetPhonePrefixes() []string

func (*FakeGateway) SendOTP added in v1.1.33

func (f *FakeGateway) SendOTP(phone *otp.Phone, code string) (string, string, error)

func (*FakeGateway) VerifyOTP added in v1.1.33

func (f *FakeGateway) VerifyOTP(phone *otp.Phone, code, generatedCode string) (string, string, bool, bool, error)

type OTPService

type OTPService struct {
	mock.Mock
}

func (*OTPService) Call

func (o *OTPService) Call(ormService *beeorm.Engine, phone *otp.Phone, customMessage string) (string, error)

func (*OTPService) GetGatewayRegistry added in v1.1.40

func (o *OTPService) GetGatewayRegistry() map[string]otp.IOTPSMSGateway

func (*OTPService) SendSMS

func (o *OTPService) SendSMS(ormService *beeorm.Engine, phone *otp.Phone) (string, error)

func (*OTPService) VerifyOTP

func (o *OTPService) VerifyOTP(ormService *beeorm.Engine, phone *otp.Phone, code string) (bool, bool, error)

Jump to

Keyboard shortcuts

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