Documentation
¶
Overview ¶
Package appdeps assembles the backend's handler dependencies from resolved configuration, shared by both entrypoints: cmd/lcatd (the standalone/container server) and cmd/lcatd-lambda (the AWS Lambda function). Keeping the wiring in one place means the two shapes serve an identical surface.
Background workers (the vocabulary-download and export-job drains) run on a ticker suited to a long-lived container; they are skipped in read-only mode (nothing queues writes for them to drain) so a read-only Lambda -- whose process freezes between invocations -- does not spawn them. A *writable* Lambda needs a different worker model (EventBridge/SQS or a scheduled drain); that is deferred (see the deployment task).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build assembles the handler dependencies from configuration. The document store is DynamoDB when LCATD_DYNAMO_TABLE is set and the grain store is S3 when LCATD_S3_BUCKET is set; otherwise both fall back to the in-memory / local-directory stores, so a laptop or the demo runs with no AWS at all.
Types ¶
This section is empty.