Application lifecycle manager enforcing a three-phase init/wire/start sequence with reverse-order graceful shutdown and per-component stop timeouts. What's included: - `Component` interface (OnInit / OnStart / OnStop) and `Hook` type for BeforeStart wiring functions - `Launcher` interface with Append, BeforeStart, Run (blocks on SIGINT/SIGTERM), and idempotent Shutdown(ctx) - `New(logger, opts...)` constructor with configurable ComponentStopTimeout (default 15 s); no global state Tested-via: todo-api POC integration Reviewed-against: docs/adr/
26 lines
622 B
JSON
26 lines
622 B
JSON
{
|
|
"name": "Go",
|
|
"image": "mcr.microsoft.com/devcontainers/go:2-1.25-trixie",
|
|
"features": {
|
|
"ghcr.io/devcontainers-extra/features/claude-code:1": {}
|
|
},
|
|
"forwardPorts": [],
|
|
"postCreateCommand": "go version",
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
"files.autoSave": "afterDelay",
|
|
"files.autoSaveDelay": 1000,
|
|
"explorer.compactFolders": false,
|
|
"explorer.showEmptyFolders": true
|
|
},
|
|
"extensions": [
|
|
"golang.go",
|
|
"eamodio.golang-postfix-completion",
|
|
"quicktype.quicktype",
|
|
"usernamehw.errorlens"
|
|
]
|
|
}
|
|
},
|
|
"remoteUser": "vscode"
|
|
} |