Singyeong.Client (singyeong v0.1.0) View Source
Link to this section Summary
Functions
Send a message with the given payload to all clients matching the given routing query.
Send a message with the given payload to all clients matching the given routing query, sending the given nonce to allow request-response messaging.
Proxies the given HTTP request with the given body to a target matching the given routing query, using the HTTP method provided.
ACK a message from the given queue, letting the server know that it doesn't need to be requeued.
Push the specified message to the specified queue, with a routing query to determine what client can pull it from the queue.
Push the specified message to the specified queue, with a routing query to determine what client can pull it from the queue, sending the given nonce to allow request-response messaging.
Mark this client as being ready to process a message from the given queue.
Send a message with the given payload to a single client matching the given routing query.
Send a message with the given payload to a single client matching the given routing query, sending the given nonce to allow request-response messaging.
Link to this section Types
Specs
http_method() :: :get | :post | :put | :patch | :delete
Link to this section Functions
Specs
broadcast_msg(Singyeong.Query.t(), term()) :: :ok
Send a message with the given payload to all clients matching the given routing query.
Specs
broadcast_msg(String.t() | nil, Singyeong.Query.t(), term()) :: :ok
Send a message with the given payload to all clients matching the given routing query, sending the given nonce to allow request-response messaging.
Specs
proxy(Singyeong.Query.t(), String.t(), http_method(), term()) :: term()
Proxies the given HTTP request with the given body to a target matching the given routing query, using the HTTP method provided.
Specs
ACK a message from the given queue, letting the server know that it doesn't need to be requeued.
Specs
queue_msg(String.t(), Singyeong.Query.t(), term()) :: :ok
Push the specified message to the specified queue, with a routing query to determine what client can pull it from the queue.
Specs
queue_msg(String.t(), String.t() | nil, Singyeong.Query.t(), term()) :: :ok
Push the specified message to the specified queue, with a routing query to determine what client can pull it from the queue, sending the given nonce to allow request-response messaging.
Specs
queue_request(String.t()) :: :ok
Mark this client as being ready to process a message from the given queue.
Specs
send_msg(Singyeong.Query.t(), term()) :: :ok
Send a message with the given payload to a single client matching the given routing query.
Specs
send_msg(String.t() | nil, Singyeong.Query.t(), term()) :: :ok
Send a message with the given payload to a single client matching the given routing query, sending the given nonce to allow request-response messaging.