Implement health check for deploy. Make version endpoint to return revision if not set
This commit is contained in:
16
internal/api/health/module.go
Normal file
16
internal/api/health/module.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user