Expand description
HTTP surface for codetopo (Phase 2 design §3, §4).
Re-exports§
Modules§
- auth
- Bearer-key authentication and per-request metering (Phase 2 design §4, §5).
- config
- Runtime configuration, all of it from the environment.
- error
- JSON error type shared by every handler and middleware.
- handlers
- The request handlers of the HTTP API (Phase 2 design §3, extended by the analytics-depth program: the symbol dossier, the diagnostics read, the ranking, and the diff).
- ingest
- Hosted ingest: getting a stranger’s repository onto the box (paid-path plan S2, gap G1).
- keys
- Runtime API key store (paid-path plan S1, gap G3).
- limits
- Per-plan limits and the request envelope (paid-path plan S3, gaps G4 and G5).
- metering
- Append-only metering log (Phase 2 design §5).
- tenancy
- Index ownership and expiry (paid-path plan S1, gap G2).
Functions§
- app
- Builds the served application: routes, then auth + metering around them.