lambdautils

package
v0.0.0-...-58d095e Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const EnvQueueURL = "QUEUE_URL"

EnvQueueURL is the environment variable that contains the SQS queue URL. TODO: Can we use Golang build constraints to change this value?

Variables

This section is empty.

Functions

func DeleteMessage

func DeleteMessage(svc sqsiface.SQSAPI, receiptHandle string) (output *sqs.DeleteMessageOutput)

DeleteMessage deletes a message from SQS and panics on any errors.

func Mustenv

func Mustenv(names ...string)

Mustenv ensures an environment variable is set and panics if it is not.

func QueueURL

func QueueURL() string

QueueURL returns the SQS Queue URL set in the environment variable.

func SendMessage

func SendMessage(svc sqsiface.SQSAPI, input *sqs.SendMessageInput) (output *sqs.SendMessageOutput)

SendMessage sends a message to SQS and panics on any errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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