awssns

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 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) 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) Tunnel added in v1.4.0

func (a *AWSSNS) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) 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