Documentation ¶
Index ¶
Constants ¶
View Source
const EnvConfigSourceSQS = "CONFIG_SWARM_SOURCE_SQS"
Environment variable to config event source
View Source
const Version = "broker/sqs/v0.20.2"
Variables ¶
This section is empty.
Functions ¶
func NewDequeuer ¶ added in v0.20.0
Create dequeue routine to AWS SQS
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Option ¶ added in v0.20.0
type Option func(*Client)
func WithBatchSize ¶ added in v0.20.0
Configure's SQS batch size. Note: AWS SQS limits the MaxNumberOfMessages to 10 per poller. This config increases number of poller
func WithConfig ¶ added in v0.20.0
Global "kernel" configuration.
func WithService ¶ added in v0.20.0
Passes AWS SQS client instance to broker
type SQS ¶
type SQS interface { GetQueueUrl(context.Context, *sqs.GetQueueUrlInput, ...func(*sqs.Options)) (*sqs.GetQueueUrlOutput, error) SendMessage(context.Context, *sqs.SendMessageInput, ...func(*sqs.Options)) (*sqs.SendMessageOutput, error) ReceiveMessage(context.Context, *sqs.ReceiveMessageInput, ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error) DeleteMessage(context.Context, *sqs.DeleteMessageInput, ...func(*sqs.Options)) (*sqs.DeleteMessageOutput, error) }
SQS
Click to show internal directories.
Click to hide internal directories.