Alexliesenfeld Health Versions Save

A simple and flexible health check library for Go.

v0.8.0

7 months ago

Breaking Changes

v0.7.0

1 year ago

Breaking Changes

  • This version introduces automatic recovery from panics that can be turned off on a per-check basis like shown in the showcase example.

Improvements

  • The initial check run that is executed on startup is non-blocking anymore.
  • A bug has been fixed that could cause goroutine leaks for timed out check functions.

v0.7.0-beta.2

1 year ago

Breaking Changes

  • This version introduces automatic recovery from panics that can be turned off on a per-check basis like shown in the showcase example.

Improvements

  • The initial check run that is executed on startup is not blocking service startup anymore when a health check function is slow.

v0.7.0-beta.1

1 year ago

Breaking Changes

  • This version introduces automatic recovery from panics that can be turned off on a per-check basis like shown in the showcase example.

v0.6.0

2 years ago

Breaking Changes

Improvements

  • Stopping the Checker does not wait until the initial delay of periodic checks has passed anymore. Checker.Stop stops the Checker immediately, but waits until all currently running check functions have completed.
  • The health check http.Handler was patched to not include an empty checks map in the JSON response. In case no check functions are defined, the JSON response will therefore not be { "status": "up", "checks" : {} } anymore but only { "status": "up" }.
  • A Kubernetes liveness and readiness checks example was added (see examples/kubernetes).

v0.5.1

2 years ago

Documentation improvements.

v0.5.0

2 years ago
  • BREAKING CHANGE: Changed function signature of middleware functions.
  • Added a new check function interceptor and a http.Handler middleware with basic logging functionality.
  • Added a new basic authentication middleware that reduces the exposed health information in case of failed authentication.
  • Added a new middleware FullDetailsOnQueryParam was added that hides details by default and only shows them when a configured query parameter name was provided in the HTTP request.
  • Added new Checker configuration option WithInterceptors, that will be applied to every check function.

v0.4.0

2 years ago

v0.4.0-beta.2

2 years ago

v0.4.0-beta.1

2 years ago