This module contains functions for interacting with RabbitMQ connections.
Summary
Functions
Close a connection by name.
Close all connections for a specific username.
Get an individual connection by name.
List all channels for a specific connection.
List all open connections.
List all connections for a specific username.
Functions
@spec delete_connection(client :: Tesla.Client.t(), name :: String.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
Close a connection by name.
Params
client- Tesla client used to perform the request.name- type:string, The name of the connection to close.
@spec delete_user_connections(client :: Tesla.Client.t(), username :: String.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
Close all connections for a specific username.
Params
client- Tesla client used to perform the request.username- type:string, The username to close connections for.
@spec get_connection(client :: Tesla.Client.t(), name :: String.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
Get an individual connection by name.
Params
client- Tesla client used to perform the request.name- type:string, The name of the connection to get.
@spec list_connection_channels(client :: Tesla.Client.t(), name :: String.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
List all channels for a specific connection.
Params
client- Tesla client used to perform the request.name- type:string, The name of the connection to list channels for.
@spec list_connections(client :: Tesla.Client.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
List all open connections.
Params
client- Tesla client used to perform the request.
@spec list_user_connections(client :: Tesla.Client.t(), username :: String.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}
List all connections for a specific username.
Params
client- Tesla client used to perform the request.username- type:string, The username to list connections for.