sms

package
v0.0.0-...-0e73c6a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelSmsImpl

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

func NewSmsChannel

func NewSmsChannel(c Config) *ChannelSmsImpl

func (*ChannelSmsImpl) Execute

func (sc *ChannelSmsImpl) Execute(ctx context.Context, deli notifier.Delivery) error

func (*ChannelSmsImpl) Name

func (sc *ChannelSmsImpl) Name() string

type Config

type Config struct {
	AccountSID      string `json:"account_sid"`
	AuthToken       string `json:"auth_token"`
	FromPhoneNumber string `json:"from_phone_number"`
}

type Content

type Content struct {
	Data string
}

Jump to

Keyboard shortcuts

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