twilio

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigAccountSID = "twilio_account_sid"
	ConfigAuthToken  = "twilio_auth_token"
)

Envioronment variable keys for configuration.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

Sender is a Twilio based sender.

func New

func New(accountSID, authToken string) *Sender

New constructs a new notification sender that sends messages via Twilio.

func (*Sender) Send

func (t *Sender) Send(msg notification.Message) error

Send sends the message.

Jump to

Keyboard shortcuts

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