Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
|
apitest
Package apitest validates HTTP exchanges against the OpenAPI contract.
|
Package apitest validates HTTP exchanges against the OpenAPI contract. |
|
gen
Package gen provides primitives to interact with the openapi HTTP API.
|
Package gen provides primitives to interact with the openapi HTTP API. |
|
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. |
|
authz
Package authz is the application authorization layer (IMPLEMENTATION_PLAN §4.4).
|
Package authz is the application authorization layer (IMPLEMENTATION_PLAN §4.4). |
|
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. |
|
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: |
|
config
Package config loads typed, validated process configuration from the environment.
|
Package config loads typed, validated process configuration from the environment. |
|
database
Package database owns every PostgreSQL connection and transaction in OpsGrid.
|
Package database owns every PostgreSQL connection and transaction in OpsGrid. |
|
health
Package health implements liveness and readiness endpoints.
|
Package health implements liveness and readiness endpoints. |
|
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. |
|
redisx
Package redisx creates instrumented Redis clients.
|
Package redisx creates instrumented Redis clients. |
|
seed
Package seed loads deterministic demo tenants for local development (G1).
|
Package seed loads deterministic demo tenants for local development (G1). |
|
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. |
|
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.