awssqs

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidWriteDelaySeconds = "--delay-seconds must be between 0 and 900"
	ErrUnableToSend             = "unable to complete message send"
	ErrMissingMessageGroupID    = "--message-group-id must be specified when writing to a FIFO queue"
)
View Source
const (
	RetryDuration = time.Duration(10) * time.Second
)
View Source
const (
	RetryReadInterval = 5 * time.Second
)

Variables

This section is empty.

Functions

func NewService

func NewService(opts *cli.Options) (*sqs.SQS, string, error)

func Read

func Read(opts *cli.Options) error

Read is the entry point function for performing read operations in AWS SQS.

This is where we verify that the provided arguments and flag combination makes sense/are valid; this is also where we will perform our initial conn.

func Relay added in v0.4.0

func Relay(opts *cli.Options) error

func Write

func Write(opts *cli.Options) error

Write is the entry point function for performing write operations in AWSSQS.

This is where we verify that the passed args and flags combo makes sense, attempt to establish a connection, parse protobuf before finally attempting to perform the write.

Types

type AWSSQS

type AWSSQS struct {
	Options  *cli.Options
	Service  types.ISQSAPI
	QueueURL string
	MsgDesc  *desc.MessageDescriptor
	Log      *logrus.Entry
	Printer  printer.IPrinter
}

func (*AWSSQS) Read

func (a *AWSSQS) Read() error

func (*AWSSQS) Write

func (a *AWSSQS) Write(value []byte) error

type Relayer added in v0.4.0

type Relayer struct {
	Options  *cli.Options
	Service  *sqs.SQS
	QueueURL string
	RelayCh  chan interface{}
	// contains filtered or unexported fields
}

func (*Relayer) Relay added in v0.4.0

func (r *Relayer) Relay() error

Directories

Path Synopsis
typesfakes
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