Documentation ¶
Index ¶
- Constants
- Variables
- func New() supervisor.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" Version = "0.0.1" )
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 ¶
type Actor ¶
type Actor struct { *supervisor.BaseActor // contains filtered or unexported fields }
Actor ...
func (*Actor) MessageParams ¶ added in v0.12.0
func (e *Actor) MessageParams() m.Attributes
MessageParams ...
Click to show internal directories.
Click to hide internal directories.