sns

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sns handles interactions with aws-sdk-go/service/sns

Index

Constants

View Source
const (

	// ErrEmptyParameter is used when a required parameter is empty
	ErrEmptyParameter = "EmptyParameter"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Default string `json:"default"`
}

Body is used to initialize a valid SNS message

type PublishInput

type PublishInput struct {
	*sns.PublishInput
}

PublishInput embeds sns.PublishInput to be used to call SnsPublish

func NewPublishInput

func NewPublishInput(body interface{}, endpoint string) (*PublishInput, error)

NewPublishInput returns a new *PublishInput given a body and an endpoint

type SNS

type SNS struct {
	*sns.SNS
}

SNS embeds sns.SNS to be used to call New

func New

func New(svc *aws.Session) (*SNS, error)

New returns a new *SNS embedding *sns.SNS

func (*SNS) SnsPublish

func (svc *SNS) SnsPublish(in *PublishInput) (err error)

SnsPublish publishes a *PublishInput on SNS

Jump to

Keyboard shortcuts

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