chore: release 0.29.0.rc0 (#1600)

This commit is contained in:
Jan-Otto Kröpke
2024-09-11 00:34:10 +02:00
committed by GitHub
parent 83b0aa8f62
commit f712c07c38
119 changed files with 5113 additions and 2255 deletions

19
pkg/httphandler/health.go Normal file
View File

@@ -0,0 +1,19 @@
package httphandler
import (
"net/http"
)
type HealthHandler struct{}
// Interface guard.
var _ http.Handler = (*HealthHandler)(nil)
func NewHealthHandler() HealthHandler {
return HealthHandler{}
}
func (h HealthHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "application/json")
_, _ = w.Write([]byte(`{"status":"ok"}`))
}