pubsub

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SNSAdapter

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

SNSAdapter is an implementation of a PubsubAdapter using AWS SNS

func NewSNSAdapter

func NewSNSAdapter(client *sns.SNS) *SNSAdapter

NewSNSAdapter creates a new SNSAdapter instance

func (*SNSAdapter) Publish

func (sa *SNSAdapter) Publish(service *types.Service, request types.Request) error

Publish publishes an event to a queue

func (*SNSAdapter) PublishWithOpts added in v1.0.0

func (sa *SNSAdapter) PublishWithOpts(service *types.Service, request types.Request, opts types.Options) error

PublishWithOpts takes the generic options type, converts to 'MessageAttributes'

func (*SNSAdapter) Subscribe

func (sa *SNSAdapter) Subscribe(service *types.Service) (<-chan *types.Response, error)

Subscribe is not implemented (subscriptions are at a higher, none code level for AWS, so we can't subscribe through code as such)

func (*SNSAdapter) SubscribeWithOpts added in v1.0.0

func (sa *SNSAdapter) SubscribeWithOpts(service *types.Service, opts types.Options) (<-chan *types.Response, error)

SubscribeWithOpts is not implemented (subscriptions are at a higher, none code level for AWS, so we can't subscribe through code as such)

Jump to

Keyboard shortcuts

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