Documentation ¶
Index ¶
- Constants
- Variables
- func New() plugins.Pluggable
- func NewAttr() m.Attributes
- func NewMessageParams() m.Attributes
- func NewSettings() m.Attributes
- type Actor
- func (e *Actor) Balance() (balance Balance, err error)
- func (e *Actor) Destroy()
- func (e *Actor) GetStatus(smsId string) (string, error)
- func (e *Actor) MessageParams() m.Attributes
- func (e *Actor) Save(msg notifyCommon.Message) (addresses []string, message *m.Message)
- func (e *Actor) Send(phone string, message *m.Message) (err error)
- func (e *Actor) Spawn()
- func (e *Actor) UpdateBalance() (err error)
- type Balance
Constants ¶
View Source
const ( // Name ... Name = "twilio" // AttrFrom ... AttrFrom = "from" // AttrSid ... AttrSid = "sid" // AttrAuthToken ... AttrAuthToken = "authToken" // AttrPhone ... AttrPhone = "phone" // AttrBody ... AttrBody = "body" // AttrAmount ... AttrAmount = "amount" // AttrCurrency ... AttrCurrency = "currency" )
View Source
const ( // StatusAccepted ... StatusAccepted = "accepted" // StatusQueued ... StatusQueued = "queued" // StatusSending ... StatusSending = "sending" // StatusReceiving ... StatusReceiving = "receiving" // StatusReceived ... StatusReceived = "received" // StatusDelivered ... StatusDelivered = "delivered" // StatusUndelivered ... StatusUndelivered = "undelivered" // StatusSent ... StatusSent = "sent" // StatusFailed ... StatusFailed = "failed" )
Variables ¶
View Source
var F embed.FS
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.