sns

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package sns provides an empire.EventStream implementation that publishes events to SNS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Event   string
	Message string
	Data    interface{}
}

Event represents the schema for an SNS payload.

type EventStream

type EventStream struct {
	// The topic to publish events to.
	TopicARN string
	// contains filtered or unexported fields
}

EventStream is an implementation of the empire.EventStream interface backed by SNS.

func NewEventStream

func NewEventStream(c client.ConfigProvider) *EventStream

func (*EventStream) PublishEvent

func (e *EventStream) PublishEvent(event empire.Event) error

Jump to

Keyboard shortcuts

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