Skeg. Server
(skeg v1.0.0)
Copy Markdown
What the connected server is and can do. Every function takes :timeout
in ms as an option.
Summary
Functions
Whether capabilities lists feature.
Checks that the server answers.
The tenant this connection acts as, and its access mode.
Functions
@spec capabilities(Skeg.conn(), keyword()) :: {:ok, Skeg.Server.Capabilities.t()} | {:error, Skeg.Error.t()}
@spec has_feature?(Skeg.Server.Capabilities.t(), String.t()) :: boolean()
Whether capabilities lists feature.
@spec ping(Skeg.conn(), keyword()) :: :ok | {:error, Skeg.Error.t()}
Checks that the server answers.
@spec whoami(Skeg.conn(), keyword()) :: {:ok, %{tenant: String.t(), mode: String.t()}} | {:error, Skeg.Error.t()}
The tenant this connection acts as, and its access mode.