sns_service

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(provider core.AwsProvider) (events.EventService, error)

Create new SNS event service plugin

func NewWithClient

func NewWithClient(provider core.AwsProvider, client snsiface.SNSAPI, sfnClient sfniface.SFNAPI) (events.EventService, error)

Types

type SnsEventService

type SnsEventService struct {
	events.UnimplementedeventsPlugin
	// contains filtered or unexported fields
}

func (*SnsEventService) ListTopics

func (s *SnsEventService) ListTopics(ctx context.Context) ([]string, error)

func (*SnsEventService) Publish

func (s *SnsEventService) Publish(ctx context.Context, topic string, delay int, event *events.NitricEvent) error

Publish to a given topic

Jump to

Keyboard shortcuts

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