Documentation ¶
Index ¶
- func DeleteMessages(q *sqs.SQS, queueUrl string, deleteRequests []*sqs.SQSDeleteMessageRequest, ...) (failList []*sqs.SQSFailResult, err error)
- func GetQueue(q *sqs.SQS, queueName string, messageRetentionSeconds uint, snsTopicArn string, ...) (queueUrl string, queueArn string, err error)
- func NewQueueAdapter(awsRegion awsregion.AWSRegion, httpOptions *awshttp2.HttpClientSettings) (*sqs.SQS, error)
- func ReceiveMessages(q *sqs.SQS, queueUrl string, messageAttributeFilters []string, ...) (messageList []*sqs.SQSReceivedMessage, err error)
- func SendMessage(q *sqs.SQS, queueUrl string, messageBody string, ...) (messageId string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMessages ¶
func DeleteMessages(q *sqs.SQS, queueUrl string, deleteRequests []*sqs.SQSDeleteMessageRequest, timeoutDuration ...time.Duration) (failList []*sqs.SQSFailResult, err error)
DeleteMessages will delete one or more messages defined in deleteRequests, if any delete failures, failed deletions will be returned via failList
func GetQueue ¶
func GetQueue(q *sqs.SQS, queueName string, messageRetentionSeconds uint, snsTopicArn string, timeoutDuration ...time.Duration) (queueUrl string, queueArn string, err error)
GetQueue will retrieve queueUrl and queueArn based on queueName, if queue is not found, a new queue will be created with the given queueName snsTopicArn = optional, set sns topic arn if needing to allow sns topic to send message to this newly created sqs
func NewQueueAdapter ¶
func NewQueueAdapter(awsRegion awsregion.AWSRegion, httpOptions *awshttp2.HttpClientSettings) (*sqs.SQS, error)
NewQueueAdapter creates a new sqs queue service provider, and auto connect for use
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.