awssqs

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: 24 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "aws-sqs"

Variables

View Source
var (
	ErrMissingQueue          = errors.New("SQS Queue name cannot be empty")
	ErrInvalidMaxNumMessages = errors.New("max number of messages must be between 1 and 10")
	ErrInvalidWaitTime       = errors.New("wait time seconds must be between 0 and 20")
)

Functions

This section is empty.

Types

type AWSSQS

type AWSSQS struct {
	// contains filtered or unexported fields
}

func New

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

func (*AWSSQS) Close

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

func (*AWSSQS) DisplayError

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

DisplayError will parse an Error record and print (pretty) output to STDOUT

func (*AWSSQS) DisplayMessage

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

DisplayMessage will parse a Read record and print (pretty) output to STDOUT

func (*AWSSQS) Name

func (a *AWSSQS) Name() string

func (*AWSSQS) Read

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

func (*AWSSQS) Relay

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

func (*AWSSQS) Test

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

func (*AWSSQS) Tunnel added in v1.4.0

func (a *AWSSQS) Tunnel(ctx context.Context, opts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error

func (*AWSSQS) Write

func (a *AWSSQS) 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