https://github.com/thulio/plug_health_check
A configurable plug to health check your web app
https://github.com/thulio/plug_health_check
elixir plug
Last synced: about 1 year ago
JSON representation
A configurable plug to health check your web app
- Host: GitHub
- URL: https://github.com/thulio/plug_health_check
- Owner: thulio
- License: mit
- Created: 2018-07-25T01:47:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-20T01:21:50.000Z (almost 8 years ago)
- Last Synced: 2025-03-27T04:11:59.643Z (about 1 year ago)
- Topics: elixir, plug
- Language: Elixir
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://circleci.com/gh/thulio/plug_health_check)
[](https://coveralls.io/github/thulio/plug_health_check?branch=master)
# PlugHealthCheck
A configurable plug to health check your web app.
# Usage
Add PlugHealthCheck to the top of you pipeline:
```elixir
defmodule SampleApp.Router do
use Plug.Router
plug(PlugHealthCheck)
plug(:match)
plug(:dispatch)
get("/", do: send_resp(conn, 200, "Welcome"))
match(_, do: send_resp(conn, 404, "Oops!"))
end
```