Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSystemHealthCheck = &SystemHealthCheck{}
Functions ¶
Types ¶
type HealthResp ¶
type HealthResp struct { Status string `json:"status"` // general app health Services []models.ServiceHealthResp `json:"services"` } // .HealthResp
HealthResp, app health response
type SystemHealthCheck ¶
type SystemHealthCheck struct {
Services []Checkable
}
func (*SystemHealthCheck) Register ¶
func (hc *SystemHealthCheck) Register(checks ...any) error
func (*SystemHealthCheck) ServeHTTP ¶
func (hc *SystemHealthCheck) ServeHTTP(w http.ResponseWriter, r *http.Request)
health responds to /health endpoint with the health of the app including dependency services
Click to show internal directories.
Click to hide internal directories.