Documentation ¶
Index ¶
- type IOTP
- type IOTPSMSGateway
- type OTP
- type Phone
- type Twilio
- func (t *Twilio) Call(phone *Phone, _ string, customMessage string) (string, string, error)
- func (t *Twilio) GetCode() string
- func (t *Twilio) GetName() string
- func (t *Twilio) SendOTP(phone *Phone, _ string) (string, string, error)
- func (t *Twilio) VerifyOTP(phone *Phone, code string) (string, string, bool, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOTPSMSGateway ¶
type OTP ¶
type OTP struct { GatewayPriority []IOTPSMSGateway GatewayName map[string]IOTPSMSGateway }
func NewOTP ¶
func NewOTP(gateways ...IOTPSMSGateway) *OTP
type Phone ¶
type Phone struct { Number string ISO3166 phonenumber.ISO3166 }
Click to show internal directories.
Click to hide internal directories.