@letsgo/queue
This package provides a way to enqueue messages to be processed by the LetsGo worker.
▸ enqueue(message, options?): Promise<EnqueueResult>
Enqueues a message to be processed by the LetsGo worker. If the LETSGO_LOCAL_QUEUE_URL environment variable is set,
the message is sent to the specified URL with an HTTP POST instead of being enqueued to AWS SQS. This environment variable
is used in the local development scenario to allow the worker component to run behind a lightweight HTTP server
on the developer's machine.
| Name | Type | Description |
|---|---|---|
message |
Message |
The message to enqueue |
options? |
EnqueueOptions |
Options for enqueueing the message |
Promise<EnqueueResult>
Enqeue result, including SQS message Id.
▸ listLetsGoQueues(region, deployment?): Promise<string[]>
Lists all SQS queue URLs created by LetsGo in a given region and optionally to support a given deployment.
| Name | Type | Description |
|---|---|---|
region |
string |
AWS region |
deployment? |
string |
LetsGo deployment name |
Promise<string[]>
Array of matching SQS queue URLs