awssqs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetryDuration = time.Duration(10) * 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 RabbitMQ.

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  *sqs.SQS
	QueueURL string
	MsgDesc  *desc.MessageDescriptor
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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