sms

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package sms provides types and methods to work with SMS delivery.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRunningCurl = errors.New("sms: error running curl command")
)

Functions

This section is empty.

Types

type SMS

type SMS struct {
	UseHTTPS   bool     // Use secure http
	Content    string   // SMS content
	Host       string   // SMS server hostname or ip
	Port       string   // SMS server port number
	Sender     string   // SMS sender
	Recipients []string // List of sms recipients
	Logger     logger.Logger
}

SMS contains properties required for sending SMS to an SMS gateway.

func New

func New(l logger.Logger) *SMS

func (*SMS) SendSMS

func (s *SMS) SendSMS() error

SendSMS sends sms text message via the configured SMS gateway.

Jump to

Keyboard shortcuts

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