Documentation ¶
Overview ¶
package sqs provides an aws sqs backed implementation of a queue data structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SendMessage(ctx context.Context, params *sqs.SendMessageInput, optFns ...func(*sqs.Options)) (*sqs.SendMessageOutput, error) ReceiveMessage(ctx context.Context, params *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error) DeleteMessage(ctx context.Context, params *sqs.DeleteMessageInput, optFns ...func(*sqs.Options)) (*sqs.DeleteMessageOutput, error) GetQueueAttributes(ctx context.Context, params *sqs.GetQueueAttributesInput, optFns ...func(*sqs.Options)) (*sqs.GetQueueAttributesOutput, error) }
SQSClient is an interface that defines the necessary methods for interacting with the SQS service.
type Queue ¶
type Queue[T types.Marshallable] struct { // contains filtered or unexported fields }
Queue is a wrapper struct around the SQS API.
func NewQueueFromAWSConfig ¶
func NewQueueFromAWSConfig[T types.Marshallable]( cfg aws.Config, queueURL string, ) (*Queue[T], error)
NewQueueFromAWSConfig creates a new SQS object with the specified AWS config & queue URL.
func NewQueueFromConfig ¶
func NewQueueFromConfig[T types.Marshallable](cfg Config) (*Queue[T], error)
NewQueueFromConfig creates a new SQS object with the specified config & queue URL.
Click to show internal directories.
Click to hide internal directories.