diff --git a/README.md b/README.md index 48c5626..83f04ff 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,9 @@ import storageminio "code.nochebuena.dev/einherjar/storage-minio" s := storageminio.New(logger, storageminio.DefaultConfig()) -launcher.Append(s) // OnInit connects; OnStop is a no-op (stateless client) -health.Register(s) // BucketExists check; LevelCritical +lc.Append(s) // OnInit connects; OnStop is a no-op (stateless client) +// s is observability.Checkable (BucketExists check, LevelCritical): +srv.Get("/health", health.NewHandler(logger, s).ServeHTTP) ``` ### Uploading diff --git a/doc.go b/doc.go index 14bb06b..a3d64d4 100644 --- a/doc.go +++ b/doc.go @@ -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 //