Files
cache-valkey/component.go
T
Rene Nochebuena 20b2595082 docs(cache-valkey): fix fictional launcher.Register/health.Register in doc examples
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.
(component.go doc comment corrected too.)

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.
2026-08-07 22:14:06 -06:00

21 lines
556 B
Go

package cachevalkey
import (
"code.nochebuena.dev/einherjar/contracts/lifecycle"
"code.nochebuena.dev/einherjar/contracts/observability"
)
// Component is the full cache-valkey capability: lifecycle management, health checks,
// and all Provider operations.
// Append it to a launcher, and wire a health endpoint (it satisfies
// observability.Checkable):
//
// lc.Append(vk)
// srv.Get("/health", health.NewHandler(logger, vk).ServeHTTP)
type Component interface {
lifecycle.Component
observability.Checkable
observability.Identifiable
Provider
}