This commit is contained in:
2025-10-03 00:15:02 +02:00
parent c9806d5fe9
commit 71e16acf9a
20 changed files with 599 additions and 419 deletions

View File

@@ -1,3 +0,0 @@
module healthcheck
go 1.24.0

View File

@@ -1,24 +0,0 @@
package main
import (
"fmt"
"log"
"net/http"
"os"
)
func main() {
resp, err := http.Get("http://localhost:3000/health")
if err != nil {
log.Fatalf("Error performing health check: %v", err)
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
log.Printf("Health check failed: Status code %d", resp.StatusCode)
os.Exit(1)
}
fmt.Println("OK")
os.Exit(0)
}