appdeps

package
v0.167.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 33 Imported by: 0

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

func Build(ctx context.Context, cfg config.Config, logger *slog.Logger) (httpapi.Deps, error)

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.

Jump to

Keyboard shortcuts

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