Documentation
¶
Index ¶
Constants ¶
View Source
const ( Sinch = "sinch" Twilio = "twilio" Kavenegar = "kavenegar" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)
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)
type TwilioGateway ¶
type TwilioGateway struct {
SID string
Token string
FromNumber string
AuthyURL string
AuthyAPIKey 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)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.