KomachiHeartbeat v0.1.1 KomachiHeartbeat View Source
Mount this using Plug.Router.forward/2
or Phoenix.Router.forward/4
.
In Plug app.
defmodule Example.Router do
use Plug.Router
plug(:match)
plug(:dispatch)
forward("/ops", to: KomachiHeartbeat)
end
In Phoenix app.
defmodule ExampleWeb.Router do
use ExampleWeb, :router
forward("/ops", KomachiHeartbeat)
end
We can use GET /MOUNT_PATH/heartbeat
& GET /MOUNT_PATH/stats
.
Link to this section Summary
Link to this section Functions
Callback implementation for Plug.call/2
.
Callback implementation for Plug.init/1
.