twilio

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AccountSID string
	AuthToken  string
	From       string
	To         []string
	// contains filtered or unexported fields
}

Client is a twilio client to send SMS messages

func (*Client) Send

func (c *Client) Send(msg string) error

Send sends an SMS message TODO imporve error handling

type IFace

type IFace interface {
	Send(msg string) error
}

IFace is an interface to a client that sends SMS messages via twilio

func New

func New(twilio Client) IFace

New returns a new twilio IFace

Jump to

Keyboard shortcuts

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