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

mocks

package
v1.1.39 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 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
}

OTPService is an autogenerated mock type for the IOTP type

func (*OTPService) Call

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

Call provides a mock function with given fields: ormService, phone, customMessage

func (*OTPService) SendSMS

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

SendSMS provides a mock function with given fields: ormService, phone

func (*OTPService) VerifyOTP

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

VerifyOTP provides a mock function with given fields: ormService, phone, code

Jump to

Keyboard shortcuts

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