Documentation ¶
Index ¶
- type FakeGateway
- func (f *FakeGateway) Call(phone *otp.Phone, code string, customMessage string) (string, string, error)
- func (f *FakeGateway) GetCode() string
- func (f *FakeGateway) GetName() string
- func (f *FakeGateway) GetPhonePrefixes() []string
- func (f *FakeGateway) SendOTP(phone *otp.Phone, code string) (string, string, error)
- func (f *FakeGateway) VerifyOTP(phone *otp.Phone, code, generatedCode string) (string, string, bool, bool, error)
- type OTPService
- func (o *OTPService) Call(ormService *beeorm.Engine, phone *otp.Phone, customMessage string) (string, error)
- func (o *OTPService) GetGatewayRegistry() map[string]otp.IOTPSMSGateway
- func (o *OTPService) SendSMS(ormService *beeorm.Engine, phone *otp.Phone) (string, error)
- func (o *OTPService) VerifyOTP(ormService *beeorm.Engine, phone *otp.Phone, code string) (bool, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGateway ¶ added in v1.1.33
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
type OTPService ¶
func (*OTPService) GetGatewayRegistry ¶ added in v1.1.40
func (o *OTPService) GetGatewayRegistry() map[string]otp.IOTPSMSGateway
Click to show internal directories.
Click to hide internal directories.