Logo
Explore Help
Sign In
go/launcher
1
0
Fork 0
You've already forked launcher
Code Issues Pull Requests Packages Releases 1 Activity
Files
main
launcher/compliance_test.go

10 lines
200 B
Go
Raw Permalink Normal View History

feat(launcher): initial stable release v0.9.0 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/
2026-03-18 23:49:12 +00:00
package launcher_test
import (
"code.nochebuena.dev/go/launcher"
"code.nochebuena.dev/go/logz"
)
// Verify New returns a Launcher.
var _ launcher.Launcher = launcher.New(logz.New(logz.Options{}))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 23ms Template: 1ms
English
English
Licenses API