awssns

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "AWSSNS"

Variables

View Source
var ErrMissingTopicARN = errors.New("--topic cannot be empty")

Functions

This section is empty.

Types

type AWSSNS

type AWSSNS struct {
	Service  snsiface.SNSAPI
	QueueURL string
	// contains filtered or unexported fields
}

func New

func New(connOpts *opts.ConnectionOptions) (*AWSSNS, error)

func (*AWSSNS) Close

func (a *AWSSNS) Close(_ context.Context) error

func (*AWSSNS) DisplayError

func (a *AWSSNS) DisplayError(msg *records.ErrorRecord) error

func (*AWSSNS) DisplayMessage

func (a *AWSSNS) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error

DisplayMessage returns nothing because SNS is a publish only backend

func (*AWSSNS) Dynamic

func (a *AWSSNS) Dynamic(ctx context.Context, dynamicOpts *opts.DynamicOptions, dynamicSvc dynamic.IDynamic, errorCh chan<- *records.ErrorRecord) error

func (*AWSSNS) Name

func (a *AWSSNS) Name() string

func (*AWSSNS) Read

func (a *AWSSNS) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error

func (*AWSSNS) Relay

func (a *AWSSNS) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error

func (*AWSSNS) Test

func (a *AWSSNS) Test(_ context.Context) error

func (*AWSSNS) Write

func (a *AWSSNS) Write(_ context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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