Documentation ¶
Index ¶
Constants ¶
View Source
const SMSOTPProviderMada = "Mada"
View Source
const SMSOTPProviderMobica = "Mobica"
View Source
const SMSOTPProviderSinch = "Sinch"
View Source
const SMSOTPProviderTwilio = "Twilio"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.3.105
type Config struct { ClockService clock.IClock SMSConfig SMSConfig MailConfig MailConfig CodeLength int GeneratorService generator.IGenerator }
type EmailConfig ¶ added in v1.3.105
type IOTPSMSGateway ¶
type Mada ¶ added in v1.0.0
type Mada struct {
// contains filtered or unexported fields
}
func NewMadaSMSOTPProvider ¶ added in v1.0.0
func (*Mada) GetPhonePrefixes ¶ added in v1.0.0
type MailConfig ¶ added in v1.3.105
type Mobica ¶ added in v1.3.93
type Mobica struct {
// contains filtered or unexported fields
}
func NewMobicaSMSOTPProvider ¶ added in v1.3.93
func (*Mobica) GetPhonePrefixes ¶ added in v1.3.93
type OTP ¶
type OTP struct { ClockService clock.IClock GeneratorService generator.IGenerator SMSGatewayPriority []IOTPSMSGateway SMSGatewayName map[string]IOTPSMSGateway SMSGatewayPhonePrefixRegex map[*regexp.Regexp]IOTPSMSGateway SMSRetryOTP bool MailSender mail.ISender CodeLength int }
func (*OTP) GetSMSGatewayRegistry ¶ added in v1.3.105
func (o *OTP) GetSMSGatewayRegistry() map[string]IOTPSMSGateway
type Phone ¶
type Phone struct { Number string ISO3166 phonenumber.ISO3166 }
type SMSConfig ¶ added in v1.3.105
type SMSConfig struct { SMSGateways []IOTPSMSGateway RetryOTP bool }
type Send ¶ added in v1.3.105
type Send struct { Phone *Phone SMSCustomMessage string Email *Email EmailConfig *EmailConfig }
type Sinch ¶ added in v0.9.91
func NewSinchSMSOTPProvider ¶ added in v0.9.91
func (*Sinch) GetPhonePrefixes ¶ added in v1.0.0
type Twilio ¶
type Twilio struct { Client *twilio.RestClient VerificationSID string }
func NewTwilioSMSOTPProvider ¶
func (*Twilio) GetPhonePrefixes ¶ added in v1.0.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.