publish

package
v0.0.0-...-e984984 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package publish contains methods that process and send events to SNS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSNS

type AWSSNS interface {
	SendEvent(string) error
}

AWSSNS is a custom interface for method that filters and publishes events to AWS SNS

type Tag

type Tag struct {
	Name string
}

Tag represents the tag for the data This is used to ToSNS data with the right filter to SNS

func (*Tag) SendEvent

func (tag *Tag) SendEvent(snsClient snsiface.SNSAPI, data string) error

SendEvent implements SSNService interface SNS interface (snsiface.SNSAPI) is used here to allow for easy testing and loose coupling See here: https://github.com/aws/aws-sdk-go/blob/master/service/sns/snsiface/interface.go

Jump to

Keyboard shortcuts

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