feat: expose files storage health detail
All checks were successful
CI / hygiene (push) Successful in 1s
Build and Deploy / build-and-deploy (push) Successful in 34s
CI / test (push) Successful in 32s

This commit is contained in:
Grendgi
2026-06-17 15:47:14 +03:00
parent aad9fa1b4a
commit 1144b11ca3
3 changed files with 98 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ func main() {
slog.Warn("ensure bucket failed", "error", err)
}
healthH := handler.NewHealthHandler(pool)
healthH := handler.NewHealthHandler(pool, store)
nodeRepo := repository.NewNodeRepository(pool)
nodeH := handler.NewNodeHandler(cfg, nodeRepo, store)
go runTrashPurger(ctx, nodeRepo, store)
@@ -67,6 +67,7 @@ func main() {
r.Get("/healthz", healthH.Healthz)
r.Get("/readyz", healthH.Readyz)
r.Get("/health/detail", healthH.Detail)
mountFilesAPI := func(r chi.Router) {
r.Get("/nodes", nodeH.List)