docs(storage-minio): fix fictional launcher.Register/health.Register in doc examples (#2)

The package-doc examples showed a fictional launcher.Register / health.Register
API (and launcher.Append as a package func). Corrected to the real wiring:
lc.Append + web/health.NewHandler(...).ServeHTTP.

Documentation-only. No code, API, or dependency changes; version stays v1.1.0
(the v1.1.0 tag is moved to include this fix). Verified by compiling the
corrected pattern against the real API.

Reviewed-on: #2
Co-authored-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
Co-committed-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
This commit was merged in pull request #2.
This commit is contained in:
2026-08-07 22:19:14 -06:00
committed by NOCHEBUENADEV
parent 2a9cb9132b
commit abeefd9810
2 changed files with 7 additions and 5 deletions
+4 -3
View File
@@ -8,11 +8,12 @@
// - OnStart: verifies the configured bucket exists; creates it if absent.
// - OnStop: releases the client reference.
//
// Register with the launcher and health aggregator before starting:
// Append to a launcher, and wire a health endpoint (mc satisfies
// [observability.Checkable]):
//
// mc := minio.New(logger, cfg)
// launcher.Register(mc)
// health.Register(mc)
// lc.Append(mc) // lifecycle: OnInit → OnStart → OnStop
// srv.Get("/health", health.NewHandler(logger, mc).ServeHTTP)
//
// # Operations
//