sqsfacade

package
v0.0.0-...-f832923 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxItemsPerBatch = 10 // AWS limitation
)

Variables

This section is empty.

Functions

func ToSimpleQueueEntry

func ToSimpleQueueEntry(body string, idx int) *sqs.SendMessageBatchRequestEntry

Types

type SQS

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

func New

func New(queueUrl string, accessKeyId string, accessKeySecret string) *SQS

func (*SQS) AckReceived

func (s *SQS) AckReceived(receiveOutput *sqs.ReceiveMessageOutput) error

func (*SQS) Receive

func (s *SQS) Receive() (*sqs.ReceiveMessageOutput, error)

func (*SQS) Send

func (s *SQS) Send(
	ctx context.Context,
	batch []*sqs.SendMessageBatchRequestEntry,
	timeout time.Duration,
	failed func(err error),
) error

Jump to

Keyboard shortcuts

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