queues

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(queue, receiptHandle string) error

func DeleteMessage

func DeleteMessage(sess *session.Session, queueURL *string, messageHandle *string) error

DeleteMessage deletes a message from an Amazon SQS queue Inputs:

sess is the current session, which provides configuration for the SDK's service clients
queueURL is the URL of the queue
messageID is the ID of the message

Output:

If success, nil
Otherwise, an error from the call to DeleteMessage

func GetMessages

func GetMessages(sess *session.Session, queueURL *string, timeout *int64) (*sqs.ReceiveMessageOutput, error)

GetMessages gets the messages from an Amazon SQS queue Inputs:

sess is the current session, which provides configuration for the SDK's service clients
queueURL is the URL of the queue
timeout is how long, in seconds, the message is unavailable to other consumers

Output:

If success, the latest message and nil
Otherwise, nil and an error from the call to ReceiveMessage

func GetQueueURL

func GetQueueURL(sess *session.Session, queue *string) (*sqs.GetQueueUrlOutput, error)

GetQueueURL gets the URL of an Amazon SQS queue Inputs:

sess is the current session, which provides configuration for the SDK's service clients
queueName is the name of the queue

Output:

If success, the URL of the queue and nil
Otherwise, an empty string and an error from the call to

func Receive

func Receive(queue string, timeout int64) (*sqs.ReceiveMessageOutput, error)

func Update

func Update(queue string, timeout int64, receiptHandle string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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