export filter type and add comment

This commit is contained in:
Patrick Detlefsen 2018-03-24 15:40:16 +01:00
parent d34fc6b372
commit e8e599380c
2 changed files with 10 additions and 1 deletions

View File

@ -63,6 +63,7 @@
-type attach_role() :: amqp10_client_session:attach_role().
-type attach_args() :: amqp10_client_session:attach_args().
-type filter() :: amqp10_client_session:filter().
-type connection_config() :: amqp10_client_connection:connection_config().
@ -246,6 +247,13 @@ attach_receiver_link(Session, Name, Source, SettleMode) ->
attach_receiver_link(Session, Name, Source, SettleMode, Durability) ->
attach_receiver_link(Session, Name, Source, SettleMode, Durability, #{}).
%% @doc Attaches a receiver link to a source.
%% This is asynchronous and will notify completion of the attach request to the
%% caller using an amqp10_event of the following format:
%% {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
-spec attach_receiver_link(pid(), binary(), binary(),
snd_settle_mode(), terminus_durability(), filter()) ->
{ok, link_ref()}.
attach_receiver_link(Session, Name, Source, SettleMode, Durability, Filter) ->
AttachArgs = #{name => Name,
role => {receiver, #{address => Source,

View File

@ -110,7 +110,8 @@
attach_args/0,
attach_role/0,
target_def/0,
source_def/0]).
source_def/0,
filter/0]).
-record(link,
{name :: link_name(),