Skip to content

Add GET /healthz - #58

Merged
markmnl merged 1 commit into
mainfrom
healthz
Oct 29, 2026
Merged

markmnl merged 1 commit into
mainfrom
healthz

Conversation

@markmnl

@markmnl markmnl commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Adds an unauthenticated GET /healthz for deploy checks and uptime monitors:

  • 200 ok when the database answers a ping within 2s, otherwise 503 database unavailable
  • Cache-Control: no-store; reveals nothing else
  • left out of gin's request log (gin.New + LoggerWithConfig{SkipPaths} + Recovery, otherwise the same as gin.Default)
  • README route table updated

Tests: TestHealthz (up and down), go test ./....

🤖 Generated with Claude Code

Returns 200 ok when the database answers within 2s, otherwise 503. It
needs no authentication and is left out of the request log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@markmnl
markmnl merged commit 7fc0559 into main Oct 29, 2026
1 check passed
@markmnl
markmnl deleted the healthz branch October 29, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant