Spear.cluster_info
You're seeing just the function
cluster_info
, go back to Spear module for more information.
Specs
cluster_info(connection :: Spear.Connection.t(), opts :: Keyword.t()) :: {:ok, [Spear.ClusterMember.t()]} | {:error, any()}
Reads the cluster information from the connected EventStoreDB
Returns a list of members which are clustered to the currently connected EventStoreDB.
Options
Options are passed to request/5
.
Examples
iex> Spear.cluster_info(conn)
{:ok,
[
%Spear.ClusterMember{
address: "127.0.0.1",
alive?: true,
instance_id: "eba4c27f-e443-4b21-8756-00845bc5cda1",
port: 2113,
state: :Leader,
timestamp: ~U[2021-04-19 17:25:17.875824Z]
}
]}