Module kyu

This module provides helper functions for amqp management.

Description

This module provides helper functions for amqp management.

Data Types

message()

message() = #{routing_key := binary(), exchange := binary(), payload := binary(), mandatory := boolean(), type := binary(), headers := list(), priority := integer(), expiration := integer(), timestamp := integer(), content_type := binary(), content_encoding := binary(), delivery_mode := integer(), correlation_id := binary(), cluster_id := binary(), message_id := binary(), user_id := binary(), app_id := binary(), reply_to := binary(), execution := kyu_publisher:execution(), timeout := infinity | integer()}

Function Index

declare/2Makes one or more declarations on the amqp channel.
publish/2Equivalent to kyu_publisher:publish(Publisher, Message).

Function Details

declare/2

declare(Channel::kyu_channel:name(), Command::list() | tuple()) -> ok

Makes one or more declarations on the amqp channel.

publish/2

publish(Publisher::kyu_publisher:name(), Message::message()) -> ok | {error, binary()}

Equivalent to kyu_publisher:publish(Publisher, Message).


Generated by EDoc