sap

package
v0.0.0-...-65fcbcb Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: BSD-2-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL      string `yaml:"url"`
	AuthHash string `yaml:"auth_hash"`
}

Config is the configuration struct for Sap provider.

type Sap

type Sap struct {
	Config
	HTTPClient *http.Client // The HTTP client to send requests on.
}

Sap contains the necessary values for the Sap provider.

func NewSap

func NewSap(config Config) *Sap

NewSap creates and returns a new Sap struct.

func (*Sap) Send

func (c *Sap) Send(message sachet.Message) error

Send sends SMS to user registered in configuration.

Jump to

Keyboard shortcuts

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