Documentation
¶
Index ¶
- Constants
- type DBLog
- type Gateway
- type ISender
- type KavenegarGateway
- func (g *KavenegarGateway) SendCalloutMessage(message *Message) (string, error)
- func (g *KavenegarGateway) SendOTPCallout(otp *OTP) (string, error)
- func (g *KavenegarGateway) SendOTPSMS(otp *OTP) (string, error)
- func (g *KavenegarGateway) SendSMSMessage(message *Message) (string, error)
- func (g *KavenegarGateway) SendVerificationCallout(otp *OTP) (string, error)
- func (g *KavenegarGateway) SendVerificationSMS(otp *OTP) (string, error)
- func (g *KavenegarGateway) VerifyCode(opt *OTP) (string, error)
- type LogEntity
- type Logger
- type Message
- type OTP
- type Provider
- type Sender
- func (s *Sender) SendMessage(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, ...) error
- func (s *Sender) SendOTPCallout(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, ...) error
- func (s *Sender) SendOTPSMS(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, ...) error
- func (s *Sender) SendVerificationCallout(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, ...) error
- func (s *Sender) SendVerificationSMS(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, ...) error
- func (s *Sender) VerifyCode(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, ...) error
- type SinchGateway
- func (g *SinchGateway) SendCalloutMessage(message *Message) (string, error)
- func (g *SinchGateway) SendOTPCallout(otp *OTP) (string, error)
- func (g *SinchGateway) SendOTPSMS(otp *OTP) (string, error)
- func (g *SinchGateway) SendSMSMessage(message *Message) (string, error)
- func (g *SinchGateway) SendVerificationCallout(otp *OTP) (string, error)
- func (g *SinchGateway) SendVerificationSMS(otp *OTP) (string, error)
- func (g *SinchGateway) VerifyCode(opt *OTP) (string, error)
- type TwilioGateway
- func (g *TwilioGateway) SendCalloutMessage(message *Message) (string, error)
- func (g *TwilioGateway) SendOTPCallout(otp *OTP) (string, error)
- func (g *TwilioGateway) SendOTPSMS(otp *OTP) (string, error)
- func (g *TwilioGateway) SendSMSMessage(message *Message) (string, error)
- func (g *TwilioGateway) SendVerificationCallout(otp *OTP) (string, error)
- func (g *TwilioGateway) SendVerificationSMS(otp *OTP) (string, error)
- func (g *TwilioGateway) VerifyCode(otp *OTP) (string, error)
Constants ¶
View Source
const ( Sinch = "sinch" Twilio = "twilio" Kavenegar = "kavenegar" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway interface { SendOTPSMS(*OTP) (string, error) SendOTPCallout(*OTP) (string, error) SendSMSMessage(*Message) (string, error) SendCalloutMessage(*Message) (string, error) SendVerificationSMS(*OTP) (string, error) SendVerificationCallout(*OTP) (string, error) VerifyCode(*OTP) (string, error) }
type ISender ¶
type ISender interface { SendOTPSMS(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error SendOTPCallout(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error SendMessage(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, message *Message) error SendVerificationSMS(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error SendVerificationCallout(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error VerifyCode(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error }
type KavenegarGateway ¶
func (*KavenegarGateway) SendCalloutMessage ¶
func (g *KavenegarGateway) SendCalloutMessage(message *Message) (string, error)
func (*KavenegarGateway) SendOTPCallout ¶
func (g *KavenegarGateway) SendOTPCallout(otp *OTP) (string, error)
func (*KavenegarGateway) SendOTPSMS ¶
func (g *KavenegarGateway) SendOTPSMS(otp *OTP) (string, error)
func (*KavenegarGateway) SendSMSMessage ¶
func (g *KavenegarGateway) SendSMSMessage(message *Message) (string, error)
func (*KavenegarGateway) SendVerificationCallout ¶ added in v0.8.35
func (g *KavenegarGateway) SendVerificationCallout(otp *OTP) (string, error)
func (*KavenegarGateway) SendVerificationSMS ¶ added in v0.8.35
func (g *KavenegarGateway) SendVerificationSMS(otp *OTP) (string, error)
func (*KavenegarGateway) VerifyCode ¶ added in v0.8.35
func (g *KavenegarGateway) VerifyCode(opt *OTP) (string, error)
type Sender ¶
func (*Sender) SendMessage ¶
func (s *Sender) SendMessage(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, message *Message) error
func (*Sender) SendOTPCallout ¶
func (s *Sender) SendOTPCallout(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error
func (*Sender) SendOTPSMS ¶
func (s *Sender) SendOTPSMS(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error
func (*Sender) SendVerificationCallout ¶ added in v0.8.35
func (s *Sender) SendVerificationCallout(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error
func (*Sender) SendVerificationSMS ¶ added in v0.8.35
func (s *Sender) SendVerificationSMS(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error
func (*Sender) VerifyCode ¶ added in v0.8.35
func (s *Sender) VerifyCode(ormService *beeorm.Engine, errorLoggerService errorlogger.ErrorLogger, otp *OTP) error
type SinchGateway ¶
type SinchGateway struct { Clock clock.Clock AppID string AppSecret string MsgURL string FromNumber string CallURL string CallerNumber string }
func (*SinchGateway) SendCalloutMessage ¶
func (g *SinchGateway) SendCalloutMessage(message *Message) (string, error)
func (*SinchGateway) SendOTPCallout ¶
func (g *SinchGateway) SendOTPCallout(otp *OTP) (string, error)
func (*SinchGateway) SendOTPSMS ¶
func (g *SinchGateway) SendOTPSMS(otp *OTP) (string, error)
func (*SinchGateway) SendSMSMessage ¶
func (g *SinchGateway) SendSMSMessage(message *Message) (string, error)
func (*SinchGateway) SendVerificationCallout ¶ added in v0.8.35
func (g *SinchGateway) SendVerificationCallout(otp *OTP) (string, error)
func (*SinchGateway) SendVerificationSMS ¶ added in v0.8.35
func (g *SinchGateway) SendVerificationSMS(otp *OTP) (string, error)
func (*SinchGateway) VerifyCode ¶ added in v0.8.35
func (g *SinchGateway) VerifyCode(opt *OTP) (string, error)
type TwilioGateway ¶
type TwilioGateway struct { SID string Token string FromNumber string AuthyURL string AuthyAPIKey string VerifyURL string VerifySID string }
func (*TwilioGateway) SendCalloutMessage ¶
func (g *TwilioGateway) SendCalloutMessage(message *Message) (string, error)
func (*TwilioGateway) SendOTPCallout ¶
func (g *TwilioGateway) SendOTPCallout(otp *OTP) (string, error)
func (*TwilioGateway) SendOTPSMS ¶
func (g *TwilioGateway) SendOTPSMS(otp *OTP) (string, error)
func (*TwilioGateway) SendSMSMessage ¶
func (g *TwilioGateway) SendSMSMessage(message *Message) (string, error)
func (*TwilioGateway) SendVerificationCallout ¶ added in v0.8.35
func (g *TwilioGateway) SendVerificationCallout(otp *OTP) (string, error)
func (*TwilioGateway) SendVerificationSMS ¶ added in v0.8.35
func (g *TwilioGateway) SendVerificationSMS(otp *OTP) (string, error)
func (*TwilioGateway) VerifyCode ¶ added in v0.8.35
func (g *TwilioGateway) VerifyCode(otp *OTP) (string, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.