Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope of changes
Implements the basic service architecture in Golang.
Estimated PR Size:
Acceptance criteria
This PR will be merged without review.
Author checklist
Note
Medium Risk
Introduces a new Gin-based HTTP server with health/status endpoints, maintenance gating, and content negotiation, plus new dependencies and startup/shutdown behavior. Risk is moderate because it establishes core runtime/service behavior but doesn’t touch auth or persistent data.
Overview
Implements the initial runnable
uptimeservice: a CLI (serve,config) that loads env viagodotenv, prints config usage, and starts the server.Adds a Gin-based HTTP server with graceful shutdown, Kubernetes probe endpoints (
/healthz,/livez,/readyz), a publicGET /v1/statusheartbeat returning status/uptime/version, and optional global maintenance mode that returns503with JSON/HTML negotiation.Introduces config loading via
confire, standard JSON API reply/error helpers, HTML scene context for error pages, and an.air.tomldev hot-reload build setup; updatesgo.mod/go.sumwith required server/telemetry dependencies.Written by Cursor Bugbot for commit f1b33a7. Configure here.