internal/

directory
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT

Directories

Path Synopsis
Package app is the assembly point: it reads configuration from the environment, picks the Postgres or SQLite repositories, builds the domain services and HTTP handlers, registers the routes behind the auth, token scope, rate limit and audit middleware, and owns the server's lifecycle.
Package app is the assembly point: it reads configuration from the environment, picks the Postgres or SQLite repositories, builds the domain services and HTTP handlers, registers the routes behind the auth, token scope, rate limit and audit middleware, and owns the server's lifecycle.
Package audit records every mutating admin request against the control plane.
Package audit records every mutating admin request against the control plane.
Package buildinfo carries the identity of the binary: which version, which commit it was built from, and when.
Package buildinfo carries the identity of the binary: which version, which commit it was built from, and when.
Package database opens and bounds the connection pool, and hides the two drivers behind one surface: PostgreSQL (github.com/jackc/pgx/v5, driven through database/sql by its stdlib shim — the production source of truth) and SQLite (modernc.org/sqlite, the local test stack).
Package database opens and bounds the connection pool, and hides the two drivers behind one surface: PostgreSQL (github.com/jackc/pgx/v5, driven through database/sql by its stdlib shim — the production source of truth) and SQLite (modernc.org/sqlite, the local test stack).
Package flagsconfig owns feature flags: the flag definitions themselves and their per-environment values.
Package flagsconfig owns feature flags: the flag definitions themselves and their per-environment values.
Package localization owns translation bundles: one JSON document per microservice, environment and locale, published to the LOCALIZATION KV bucket at key "{envID}.{microserviceID}.{locale}".
Package localization owns translation bundles: one JSON document per microservice, environment and locale, published to the LOCALIZATION KV bucket at key "{envID}.{microserviceID}.{locale}".
Package messaging is the distribution plane: the NATS connection, the JetStream KV buckets (FLAGS, MICROCONFIG, LOCALIZATION), the key layout consumers watch, the write-through publisher, and the reconciler.
Package messaging is the distribution plane: the NATS connection, the JetStream KV buckets (FLAGS, MICROCONFIG, LOCALIZATION), the key layout consumers watch, the write-through publisher, and the reconciler.
Package microconfig owns per-service appsettings: one JSON tree per microservice and environment, published to the MICROCONFIG KV bucket at key "{envID}.{microserviceID}".
Package microconfig owns per-service appsettings: one JSON tree per microservice and environment, published to the MICROCONFIG KV bucket at key "{envID}.{microserviceID}".
Package obs is the instrumentation tier: ECS-shaped structured logging and a standard-library metrics registry rendered in Prometheus text format.
Package obs is the instrumentation tier: ECS-shaped structured logging and a standard-library metrics registry rendered in Prometheus text format.
Package web holds the HTTP request and response plumbing shared by every domain handler: JSON encoding with a uniform error envelope, and decoding that is bounded before it is parsed.
Package web holds the HTTP request and response plumbing shared by every domain handler: JSON encoding with a uniform error envelope, and decoding that is bounded before it is parsed.

Jump to

Keyboard shortcuts

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