messagebird

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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

This section is empty.

Functions

func New

func New() plugins.Plugable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

func NewMessageParams

func NewMessageParams() m.Attributes

NewMessageParams ...

func NewSettings

func NewSettings() map[string]*m.Attribute

NewSettings ...

Types

type Actor

type Actor struct {
	entity_manager.BaseActor

	AccessToken string
	Name        string
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(settings m.Attributes,
	entityManager entity_manager.EntityManager,
	eventBus bus.Bus,
	adaptors *adaptors.Adaptors) *Actor

NewActor ...

func (*Actor) GetStatus

func (p *Actor) GetStatus(smsId string) (string, error)

GetStatus ...

func (*Actor) Send

func (p *Actor) Send(phone string, message m.Message) (err error)

Send ...

func (*Actor) Spawn

func (p *Actor) Spawn() entity_manager.PluginActor

Spawn ...

func (*Actor) UpdateBalance

func (p *Actor) UpdateBalance() (bal Balance, err error)

UpdateBalance ...

type Balance

type Balance struct {
	Payment string
	Type    string
	Amount  float32
}

Balance ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL