Skip to content

Instantly share code, notes, and snippets.

@lpeppe
Created April 20, 2021 17:13
Show Gist options
  • Save lpeppe/af334e08fd02cdc9c783d1dcba727920 to your computer and use it in GitHub Desktop.
Save lpeppe/af334e08fd02cdc9c783d1dcba727920 to your computer and use it in GitHub Desktop.
defmodule PhxHealthcheck.Healthcheck do
@callback check_status() :: String.t()
@spec get_service_status(atom()) :: String.t()
def get_service_status(service) do
GenServer.call(service, {:get_status})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment