sqs

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sqs implements the AWS SQS JSON-RPC protocol as a server.Handler. Modern aws-sdk-go-v2 SQS uses AwsJson1_0 with X-Amz-Target headers (since SQS migrated off the legacy Query protocol in 2023).

MVP coverage: queue lifecycle + the synchronous send/receive/delete loop every consumer needs. Batch ops, ChangeMessageVisibility, attributes, and PurgeQueue are deferred to a follow-up — the portable messagequeue.MessageQueue driver supports them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler serves SQS JSON-RPC requests against a messagequeue.MessageQueue driver.

func New

func New(mq mqdriver.MessageQueue) *Handler

New returns an SQS handler backed by mq.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches identifies SQS requests by their X-Amz-Target header. SQS shares the same content-type as DynamoDB (application/x-amz-json-1.0) so the header prefix is the only reliable discriminator.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP dispatches SQS operations based on X-Amz-Target.

Jump to

Keyboard shortcuts

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