ha-handler/lib/ha_handler/pgsql.ex
2022-02-19 10:18:05 +01:00

10 lines
235 B
Elixir

defmodule HAHandler.PGSQL do
@supervisor HAHandler.PGSQL.Supervisor
def status() do
watchers = Supervisor.which_children(@supervisor)
for {_id, pid, _type, _modules} <- watchers do
GenServer.call(pid, :status)
end
end
end