sns_service

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (events.EventService, error)

Create new SNS event service plugin

func NewWithClient

func NewWithClient(client snsiface.SNSAPI) (events.EventService, error)

Types

type SnsEventService

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

func (*SnsEventService) ListTopics

func (s *SnsEventService) ListTopics() ([]string, error)

func (*SnsEventService) Publish

func (s *SnsEventService) Publish(topic string, 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