amazonsns

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 7 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

Jump to

Keyboard shortcuts

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