sns

package
v0.0.0-...-1086ada Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

sns is for sending messages to AWS SNS topics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SNS

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

func Init

func Init() (SNS, error)

func (*SNS) Publish

func (s *SNS) Publish(m msg.Raw, retries int) (err error)

Publish publishes m to the AWS SNS topic cfg.SNS.TopicArn. Errors on publish or an empty MessageId in the publish response are an error. If an error is encountered then publishing is attempted retries more times with a pause of 30s between each attempt. retries can be 0 to attempt publishing only once.

Jump to

Keyboard shortcuts

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