Documentation
¶
Overview ¶
Package heartbeat is a small module to use with a Goa app providing a heartbeat to ping for health check purposes.
By adding Heartbeat your app will respond with a 200 OK and a JSON object like so: `{"ENV":"production"}` on the url you specify or /health if no url is specified. Heartbeat returns a simple JSON object with one key, ENV, having the value of the ENV environment variable or "dev" if ENV has no value.
Heartbeat is not a middleware, instead it adds itself to service.Mux as an http handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.