11 lines
235 B
Elixir
11 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
|