Directories
¶
| Path | Synopsis |
|---|---|
|
Package apispec embeds the OpenAPI contract so tests can validate real responses against it.
|
Package apispec embeds the OpenAPI contract so tests can validate real responses against it. |
|
cmd
|
|
|
api
command
Command api serves the OpsGrid HTTP API, the realtime gateway and the embedded web UI.
|
Command api serves the OpsGrid HTTP API, the realtime gateway and the embedded web UI. |
|
healthcheck
command
Command healthcheck probes a local HTTP endpoint and exits 0 on 2xx.
|
Command healthcheck probes a local HTTP endpoint and exits 0 on 2xx. |
|
migrate
command
Command migrate applies the embedded database migrations as the schema owner role.
|
Command migrate applies the embedded database migrations as the schema owner role. |
|
relay
command
Command relay publishes committed outbox events (transactional outbox relay).
|
Command relay publishes committed outbox events (transactional outbox relay). |
|
seed
command
Command seed upserts deterministic demo tenants (Cascade / Northstar).
|
Command seed upserts deterministic demo tenants (Cascade / Northstar). |
|
worker
command
Command worker runs OpsGrid background job consumers.
|
Command worker runs OpsGrid background job consumers. |
|
Package db embeds the SQL migrations and bootstrap scripts so every binary and test harness applies exactly the reviewed files.
|
Package db embeds the SQL migrations and bootstrap scripts so every binary and test harness applies exactly the reviewed files. |
|
internal
|
|
|
api
Package api adapts the generated OpenAPI strict-server interface (internal/api/gen) to OpsGrid's HTTP platform: request decoding errors and handler errors become RFC 9457 problems through httpx.WriteError, and the generated routes mount on a standard ServeMux.
|
Package api adapts the generated OpenAPI strict-server interface (internal/api/gen) to OpsGrid's HTTP platform: request decoding errors and handler errors become RFC 9457 problems through httpx.WriteError, and the generated routes mount on a standard ServeMux. |
|
api/apitest
Package apitest validates HTTP exchanges against the OpenAPI contract.
|
Package apitest validates HTTP exchanges against the OpenAPI contract. |
|
api/gen
Package gen provides primitives to interact with the openapi HTTP API.
|
Package gen provides primitives to interact with the openapi HTTP API. |
|
app
Package app is the composition root: the only package that wires platform components and domain modules together.
|
Package app is the composition root: the only package that wires platform components and domain modules together. |
|
platform/apperr
Package apperr defines the typed errors that domain and application code return.
|
Package apperr defines the typed errors that domain and application code return. |
|
platform/authz
Package authz is the application authorization layer (IMPLEMENTATION_PLAN §4.4).
|
Package authz is the application authorization layer (IMPLEMENTATION_PLAN §4.4). |
|
platform/authz/cmd/genmatrix
command
Command genmatrix writes docs/security/permission-matrix.md and packages/api-client/permissions.json from the static authz role map.
|
Command genmatrix writes docs/security/permission-matrix.md and packages/api-client/permissions.json from the static authz role map. |
|
platform/buildinfo
Package buildinfo exposes the version and commit baked in at build time:
|
Package buildinfo exposes the version and commit baked in at build time: |
|
platform/config
Package config loads typed, validated process configuration from the environment.
|
Package config loads typed, validated process configuration from the environment. |
|
platform/database
Package database owns every PostgreSQL connection and transaction in OpsGrid.
|
Package database owns every PostgreSQL connection and transaction in OpsGrid. |
|
platform/health
Package health implements liveness and readiness endpoints.
|
Package health implements liveness and readiness endpoints. |
|
platform/httpx
Package httpx contains the HTTP plumbing shared by OpsGrid processes: the middleware pipeline, RFC 9457 problem responses, strict JSON decoding and server construction.
|
Package httpx contains the HTTP plumbing shared by OpsGrid processes: the middleware pipeline, RFC 9457 problem responses, strict JSON decoding and server construction. |
|
platform/redisx
Package redisx creates instrumented Redis clients.
|
Package redisx creates instrumented Redis clients. |
|
platform/seed
Package seed loads deterministic demo tenants for local development (G1).
|
Package seed loads deterministic demo tenants for local development (G1). |
|
platform/telemetry
Package telemetry wires OpenTelemetry tracing and metrics and the structured slog logger used by every OpsGrid process.
|
Package telemetry wires OpenTelemetry tracing and metrics and the structured slog logger used by every OpsGrid process. |
|
platform/webui
Package webui serves the built single-page application from the API binary (ADR-020): same origin as the API, so no CORS and simple cookies.
|
Package webui serves the built single-page application from the API binary (ADR-020): same origin as the API, so no CORS and simple cookies. |
Click to show internal directories.
Click to hide internal directories.