awssns

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSNS

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

AWSSNS struct exposes all the services provided by this package

func NewService

func NewService(cfg *Config) (*AWSSNS, error)

NewService returns a new instance of this package with all the required initialization

func (*AWSSNS) Send

func (awssns *AWSSNS) Send(recipient string, body string) (interface{}, error)

Send sends a transactional SMS using AWS SNS service

type Config

type Config struct {
	Region     string
	AccessKey  string
	Secret     string
	HTTPClient *http.Client
}

Config holds all the configurations required for AWS SES to function

Jump to

Keyboard shortcuts

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