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) 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() (bal Balance, err error)
- type Balance
Constants ¶
View Source
const ( // Name ... Name = "messagebird" // AttrAccessKey ... AttrAccessKey = "access_key" // AttrName ... AttrName = "name" // AttrPhone ... AttrPhone = "phone" // AttrBody ... AttrBody = "body" // AttrPayment ... AttrPayment = "Payment" // AttrType ... AttrType = "Type" // AttrAmount ... AttrAmount = "Amount" )
View Source
const (
// StatusDelivered ...
StatusDelivered = "delivered"
)
Variables ¶
View Source
var F embed.FS
Functions ¶
Types ¶
type Actor ¶
type Actor struct { *supervisor.BaseActor AccessToken string Name string // contains filtered or unexported fields }
Actor ...
func (*Actor) UpdateBalance ¶
UpdateBalance ...
Click to show internal directories.
Click to hide internal directories.