feat: initial commit

This commit is contained in:
2026-04-16 19:39:02 +02:00
commit 50d1686b1e
44 changed files with 2089 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package interfaces
import (
"encoding/json"
"net/http"
"time"
)
type HealthHandler struct{}
func NewHealthHandler() *HealthHandler {
return &HealthHandler{}
}
type healthResponse struct {
Status string `json:"status"`
Timestamp time.Time `json:"timestamp"`
}
func (h *HealthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_ = json.NewEncoder(w).Encode(healthResponse{
Status: "ok",
Timestamp: time.Now().UTC(),
})
}