sms

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package sms provides helpers to work with sms.

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 {
	Host       string   // sms server hostname or ip
	Port       string   // sms server port number
	Sender     string   // sms sender
	Content    string   // sms content
	Recipients []string // list of sms recipients
	UseHTTPS   bool     // use https?
	Logger     logger.Logger
}

SMS implements various information needed for the SMS type.

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