Directories
¶
| Path | Synopsis |
|---|---|
|
application
|
|
|
command
Package command — approve_user.go
|
Package command — approve_user.go |
|
service
Package service provides application services.
|
Package service provides application services. |
|
dev
|
|
|
cli
Package cli holds the client-side helpers used by the duragraph CLI subcommands (`runs *`, `events tail`).
|
Package cli holds the client-side helpers used by the duragraph CLI subcommands (`runs *`, `events tail`). |
|
init
Package initpkg scaffolds new duragraph projects from embedded templates.
|
Package initpkg scaffolds new duragraph projects from embedded templates. |
|
watch
Package watch implements `duragraph dev`'s watch-mode worker supervision (binary-modes.yml § watch_mode).
|
Package watch implements `duragraph dev`'s watch-mode worker supervision (binary-modes.yml § watch_mode). |
|
domain
|
|
|
user
Package user implements the User aggregate for the platform domain.
|
Package user implements the User aggregate for the platform domain. |
|
worker
Package worker provides the worker domain model for managing remote workers.
|
Package worker provides the worker domain model for managing remote workers. |
|
infrastructure
|
|
|
auth
Package auth contains the JWT issuance + verification primitives shared by the platform OAuth callback handler (which mints tokens) and the engine's HTTP middleware (which verifies them on every authenticated request).
|
Package auth contains the JWT issuance + verification primitives shared by the platform OAuth callback handler (which mints tokens) and the engine's HTTP middleware (which verifies them on every authenticated request). |
|
http/dashboard
Package dashboard serves the embedded React dashboard with SPA-style fallback so client-side routes resolve to index.html.
|
Package dashboard serves the embedded React dashboard with SPA-style fallback so client-side routes resolve to index.html. |
|
http/handlers/admin
Admin DTOs — request/response shapes for /api/admin/* endpoints.
|
Admin DTOs — request/response shapes for /api/admin/* endpoints. |
|
http/handlers/auth
Package auth implements the platform OAuth login/callback/logout/refresh HTTP endpoints.
|
Package auth implements the platform OAuth login/callback/logout/refresh HTTP endpoints. |
|
http/handlers/platform
Package platform implements the self-service platform HTTP handlers under /api/platform/*.
|
Package platform implements the self-service platform HTTP handlers under /api/platform/*. |
|
http/middleware
AdminAuthMiddleware — guards /api/admin/* (and any other admin-only route group) by requiring claims.role == "admin".
|
AdminAuthMiddleware — guards /api/admin/* (and any other admin-only route group) by requiring claims.role == "admin". |
|
messaging
Package messaging — tenant_provisioner.go
|
Package messaging — tenant_provisioner.go |
|
messaging/nats
Package nats — embedded.go
|
Package nats — embedded.go |
|
persistence/postgres
Package postgres — embedded.go
|
Package postgres — embedded.go |
|
pkg
|
|
|
debug
Package debug exposes the stdlib net/http/pprof handlers on a separate localhost-bound listener for contributor profiling.
|
Package debug exposes the stdlib net/http/pprof handlers on a separate localhost-bound listener for contributor profiling. |
|
logging
Package logging configures slog.Default() so the rest of the codebase can call slog.{Info,Warn,Error,Debug} without thinking about output format.
|
Package logging configures slog.Default() so the rest of the codebase can call slog.{Info,Warn,Error,Debug} without thinking about output format. |
Click to show internal directories.
Click to hide internal directories.