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 interacts with pkg/aws/sns methods and types

Index

Constants

View Source
const (

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

	// ErrNoPointerParameter is used when a parameter is expected to be a pointer but it wasn't
	ErrNoPointerParameter = "NoPointerParameter"
)

Variables

This section is empty.

Functions

func UnmarshalMessage

func UnmarshalMessage(msg string, in interface{}) error

UnmarshalMessage unmarshal an SNS Message to a given interface

Types

type SNS

type SNS struct {
	*sns.SNS
}

SNS embeds *sns.SNS and is used to call sns methods on high level

func New

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

New returns a *SNS given a *aws.Session

func (*SNS) Publish

func (svc *SNS) Publish(input interface{}, targetArn string) error

Publish publishes a given input to in a given targetArn

Jump to

Keyboard shortcuts

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