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
Click to show internal directories.
Click to hide internal directories.