go-sqs-do

command module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2015 License: MIT Imports: 7 Imported by: 0

README

go-sqs-do

Pass SQS messages to a handler script.

GitHub Release

usage

sqs-do -queue <url> [options] -- <command> [options]

The handler script will be executed with the following environment variables:

SQS_BODY
SQS_MESSAGE_ID
SQS_RECEIPT_HANDLE

If the handler script exits with a zero status code, sqs-do will handle removing the message from the queue. If the exit code is not zero, the message re-enters the queue after the VisiblityTimeout.

install

go get github.com/fullscreen/go-sqs-do

Make sure your PATH includes your GOPATH bin directory:

export PATH=$PATH:$GOPATH/bin

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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