sqs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg iaws.Config) *sqs.SQS

New returns a configured SQS client.

Types

type API

type API struct {
	Client sqsiface.SQSAPI
}

API wraps an SQS client interface.

func (*API) IsEnabled

func (a *API) IsEnabled() bool

IsEnabled checks whether a new client has been set.

func (*API) SendMessage

func (a *API) SendMessage(ctx aws.Context, queue string, data []byte) (*sqs.SendMessageOutput, error)

SendMessage is a convenience wrapper for sending a message to an SQS queue.

func (*API) SendMessageBatch

func (a *API) SendMessageBatch(ctx aws.Context, queue string, data [][]byte) (*sqs.SendMessageBatchOutput, error)

SendMessageBatch is a convenience wrapper for sending multiple messages to an SQS queue. This function becomes recursive for any messages that failed the SendMessage operation.

func (*API) Setup

func (a *API) Setup(cfg iaws.Config)

Setup creates an SQS client.

Jump to

Keyboard shortcuts

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