Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
Channel contains a Twilio client and number
func (*Channel) ReceiveMessage ¶
ReceiveMessage for Twilio
func (*Channel) ReceiveMessages ¶
ReceiveMessages uses event queues to receive messages. Starts a long running process
func (*Channel) SendMessage ¶
SendMessage for Twilio
type Client ¶
type Client interface {
SendMessage(from string, to string, body string, mediaURLs []*url.URL) (*twilio.Message, error)
}
Client is the twilio client interface
type Config ¶
type Config struct { AccountSid string `mapstructure:"account_sid"` AuthToken string `mapstructure:"auth_token"` Number string `mapstructure:"number"` }
Config models Twilio configuration
type MessageIn ¶
type MessageIn struct { From string `form:"From"` Body string `form:"Body"` To string `form:"To"` MediaURL string `form:"MediaUrl"` MediaContentType string `form:"MediaContentType"` MessageSid string `form:"MessageSid"` SmsStatus string `form:"SmsStatus"` AccountSid string `form:"AccountSid"` Sid string `form:"Sid"` SmsSid string `form:"SmsSid"` SmsMessageSid string `form:"SmsMessageSid"` NumMedia int `form:"NumMedia"` NumSegments int `form:"NumSegments"` APIVersion string `form:"ApiVersion"` ProfileName string `form:"ProfileName"` WaID string `form:"WaId"` }
MessageIn models an incoming Twilio message
Directories ¶
Path | Synopsis |
---|---|
Package mocktwilio is a generated GoMock package.
|
Package mocktwilio is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.