Conduit v0.12.10 Conduit.Topology.Exchange View Source
Configuration for an exchange
Link to this section Summary
Functions
Creates a new Exchange struct
Link to this section Types
Link to this section Functions
Creates a new Exchange struct
If functions are passed to either argument, they will be evaluated before returning the struct.
Examples
iex> Conduit.Topology.Exchange.new("topic")
%Conduit.Topology.Exchange{name: "topic", opts: []}
iex> Conduit.Topology.Exchange.new("topic", type: :fanout)
%Conduit.Topology.Exchange{name: "topic", opts: [type: :fanout]}
iex> Conduit.Topology.Exchange.new(fn -> "dynamic.name" end, fn -> [type: :fanout] end)
%Conduit.Topology.Exchange{name: "dynamic.name", opts: [type: :fanout]}