Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueProcessor ¶
type QueueProcessor struct { SQS SQSMessageReader QueueURL string Handler *deferred.Handler QueueWaitTimeSeconds int64 }
QueueProcessor reads and handles sqs messages produced by RelayHandler
type RelayHandler ¶
type RelayHandler struct { SQS SQSMessageSender QueueURL string }
RelayHandler publishes the request to a SQS queue
type SQSMessageReader ¶
type SQSMessageReader interface { ReceiveMessageWithContext(aws.Context, *sqs.ReceiveMessageInput, ...request.Option) (*sqs.ReceiveMessageOutput, error) DeleteMessageWithContext(aws.Context, *sqs.DeleteMessageInput, ...request.Option) (*sqs.DeleteMessageOutput, error) }
SQSMessageReader is the subset of sqsiface.SQSAPI used by QueueProcessor
type SQSMessageSender ¶
type SQSMessageSender interface {
SendMessageWithContext(aws.Context, *sqs.SendMessageInput, ...request.Option) (*sqs.SendMessageOutput, error)
}
SQSMessageSender is the subset of sqsiface.SQSAPI used by RelayHandler
Click to show internal directories.
Click to hide internal directories.