sqs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package sqs provides an SQS implementation of the MessageQueueReader interface. It allows reading messages from AWS SQS queues without deleting them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQSReader

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

SQSReader implements MessageQueueReader for AWS SQS

func NewSQSReader

func NewSQSReader(cfg *mqreader.Config) (*SQSReader, error)

NewSQSReader creates a new SQS reader from a config

func (*SQSReader) Close

func (r *SQSReader) Close() error

Close releases resources (no-op for SQS as we don't maintain persistent connections)

func (*SQSReader) Connect

func (r *SQSReader) Connect(ctx context.Context) error

Connect establishes connection to SQS

func (*SQSReader) GetMetadata

func (r *SQSReader) GetMetadata(ctx context.Context) (*mqreader.QueueMetadata, error)

GetMetadata returns information about the queue

func (*SQSReader) Peek

func (r *SQSReader) Peek(ctx context.Context, maxMessages int) ([]mqreader.Message, error)

Peek reads messages from the queue without deleting them. It uses VisibilityTimeout=0 so messages are immediately available for other consumers.

Jump to

Keyboard shortcuts

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