sqs

package
v0.0.0-...-4347b6b Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeSentAt = "SentAt"
	AttributeAll    = "All"

	FormatSentAt = "2006-01-02 15:04:05.999999999 -0700 MST"

	TypeString = "String"
)

Common Attributes.

Variables

View Source
var (
	TimeoutVisibility int64 = 60
	TimeoutWait       int64 = 10
)

Common Timeouts.

Functions

func MessageInput

func MessageInput(body []byte, queueURL string) *sqs.SendMessageInput

MessageInput given a queue url and a body creates a common message for to be sent over SQS.

func ReceiveMessage

func ReceiveMessage(api API, queueURL string) (*sqs.ReceiveMessageOutput, error)

ReceiveMessage given a queue url fetches the latest message with the common attributes and timeouts.

Types

type API

API bundles common SQS operations.

Jump to

Keyboard shortcuts

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