Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
codegen
command
Command codegen generates i18n, event, and permission source from their hand-written catalogs.
|
Command codegen generates i18n, event, and permission source from their hand-written catalogs. |
|
coderules
command
Package main implements the coderules binary that enforces Dinchy codebase invariants via static analysis.
|
Package main implements the coderules binary that enforces Dinchy codebase invariants via static analysis. |
|
dinchy
command
Package main is the entry point for the Dinchy server binary.
|
Package main is the entry point for the Dinchy server binary. |
|
validate
command
Command validate checks the i18n, event, and permission catalogs against their schemas without regenerating code.
|
Command validate checks the i18n, event, and permission catalogs against their schemas without regenerating code. |
|
internal
|
|
|
app
Package app wires the application dependencies together and owns the server lifecycle.
|
Package app wires the application dependencies together and owns the server lifecycle. |
|
config
Package config loads application startup configuration from environment variables.
|
Package config loads application startup configuration from environment variables. |
|
features
Package features provides the shared service base that every feature service embeds.
|
Package features provides the shared service base that every feature service embeds. |
|
features/audit
Package audit records and serves audit log entries for security-relevant events.
|
Package audit records and serves audit log entries for security-relevant events. |
|
features/auth
Package auth handles authentication, sessions, account setup, and related feature flows.
|
Package auth handles authentication, sessions, account setup, and related feature flows. |
|
features/health
Package health serves liveness and readiness probes for the process.
|
Package health serves liveness and readiness probes for the process. |
|
features/session
Package session owns authenticated request principals, session cookies, and session request middleware.
|
Package session owns authenticated request principals, session cookies, and session request middleware. |
|
foundation/clock
Package clock provides a mockable time source for testability.
|
Package clock provides a mockable time source for testability. |
|
foundation/errors
Package errors provides structured, localizable application errors.
|
Package errors provides structured, localizable application errors. |
|
foundation/i18n
Package i18n resolves message codes to localized text for supported locales.
|
Package i18n resolves message codes to localized text for supported locales. |
|
foundation/id
Package id provides UUIDv7 generation.
|
Package id provides UUIDv7 generation. |
|
foundation/permission
Package permission defines built-in access permissions and roles.
|
Package permission defines built-in access permissions and roles. |
|
foundation/requestmeta
Package requestmeta carries request-scoped observability values — client IP, user agent, and request, trace, and span IDs — across layers via the context.
|
Package requestmeta carries request-scoped observability values — client IP, user agent, and request, trace, and span IDs — across layers via the context. |
|
foundation/security
Package security hashes passwords and generates tokens for authentication.
|
Package security hashes passwords and generates tokens for authentication. |
|
foundation/transform
Package transform provides small pure string normalization helpers.
|
Package transform provides small pure string normalization helpers. |
|
manifest
Package manifest parses and validates code-generation manifests.
|
Package manifest parses and validates code-generation manifests. |
|
platform/cache
Package cache provides Redis connection setup, shared key namespacing, and a typed, namespaced cache entry so callers address cached values by identifier alone and never build key strings by hand.
|
Package cache provides Redis connection setup, shared key namespacing, and a typed, namespaced cache entry so callers address cached values by identifier alone and never build key strings by hand. |
|
platform/email
Package email renders resolved Content into a shared branded layout and delivers it durably through a background job.
|
Package email renders resolved Content into a shared branded layout and delivers it durably through a background job. |
|
platform/events
Package events provides a Redis-stream-backed event bus that publishes domain events and dispatches them to registered subscribers via consumer groups.
|
Package events provides a Redis-stream-backed event bus that publishes domain events and dispatches them to registered subscribers via consumer groups. |
|
platform/frontend
Package frontend serves the compiled web UI assets from the top-level web workspace.
|
Package frontend serves the compiled web UI assets from the top-level web workspace. |
|
platform/jobs
Package jobs provides a durable, Postgres-backed background job queue (River) for on-demand work that must survive restarts and is retried until it succeeds.
|
Package jobs provides a durable, Postgres-backed background job queue (River) for on-demand work that must survive restarts and is retried until it succeeds. |
|
platform/logging
Package logging configures structured application logging and telemetry.
|
Package logging configures structured application logging and telemetry. |
|
platform/store
Package store is the postgres-backed persistence implementation.
|
Package store is the postgres-backed persistence implementation. |
|
platform/store/sqltype
Package sqltype converts Go values to and from pgx nullable column types.
|
Package sqltype converts Go values to and from pgx nullable column types. |
|
transport
Package transport configures the Chi HTTP router, mounts middleware, and wires API routes.
|
Package transport configures the Chi HTTP router, mounts middleware, and wires API routes. |
|
transport/middleware
Package middleware provides HTTP middleware for the transport layer.
|
Package middleware provides HTTP middleware for the transport layer. |
|
transport/render
Package render localizes application errors into transport-layer HTTP responses for Huma.
|
Package render localizes application errors into transport-layer HTTP responses for Huma. |
|
transport/support
Package support provides shared transport helpers for the HTTP server layer.
|
Package support provides shared transport helpers for the HTTP server layer. |
|
workers
Package workers constructs the background job scheduler and registers the recurring jobs the application owns.
|
Package workers constructs the background job scheduler and registers the recurring jobs the application owns. |
Click to show internal directories.
Click to hide internal directories.