amazonsns

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonSNS

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

AmazonSNS Basic structure with SNS information

func New

func New(accessKeyID, secretKey, region string) (*AmazonSNS, error)

New creates a new AmazonSNS

func (*AmazonSNS) AddReceivers

func (s *AmazonSNS) AddReceivers(queues ...string)

AddReceivers takes queue urls and adds them to the internal topics list. The Send method will send a given message to all those Topics.

func (AmazonSNS) Send

func (s AmazonSNS) Send(ctx context.Context, subject, message string) error

Send message to everyone on all topics

type SNSSendMessageAPI

type SNSSendMessageAPI interface {
	SendMessage(ctx context.Context,
		params *sns.PublishInput,
		optFns ...func(*sns.Options)) (*sns.PublishOutput, error)
}

SNSSendMessageAPI Basic interface to send messages through SNS.

type SNSSendMessageClient

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

SNSSendMessageClient Client specific for SNS using aws sdk v2.

func (SNSSendMessageClient) SendMessage

func (s SNSSendMessageClient) SendMessage(ctx context.Context,
	params *sns.PublishInput,
	optFns ...func(*sns.Options)) (*sns.PublishOutput, error)

SendMessage Client specific for SNS using aws sdk v2.

Jump to

Keyboard shortcuts

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