sqs

package
v0.0.0-...-47d33f9 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Send(ctx context.Context, msg string, options ...SendOption) (string, error)
}

Client represents a client that communicates with Amazon SQS about the request.

func NewClient

func NewClient(sqsAPI *sqs.Client, queueURL string) Client

NewClient returns a new SQS client.

type SendOption

type SendOption func(*sqs.SendMessageInput)

SendOption is a functional option that can augment or modify a sqs.SendMessageInput request.

func WithDelaySeconds

func WithDelaySeconds(s int32) SendOption

WithDelaySeconds returns a SendOption which setup the delay seconds when SendMessage.

Jump to

Keyboard shortcuts

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