Implement health check for deploy. Make version endpoint to return revision if not set

This commit is contained in:
2026-03-25 23:48:48 +03:00
parent ee6b510e41
commit fc0c84f7f7
9 changed files with 100 additions and 15 deletions

View File

@@ -0,0 +1,16 @@
package health
import (
"net/http"
"go.uber.org/fx"
)
var Module = fx.Options(
fx.Provide(New),
)
// Handler health handler interface
type Handler interface {
Health(http.ResponseWriter, *http.Request)
}