Skip to content

Commit

Permalink
Fix initializer type specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nsweeting committed Jun 20, 2019
1 parent d25b635 commit d8e98c9
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions lib/rabbit/initializer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,35 @@ defmodule Rabbit.Initializer do

@type t :: GenServer.name()
@type exchange ::
{:name, binary()}
| {:type, :direct | :fanout | :topic | :match | :headers}
| {:durable, boolean()}
| {:auto_delete, boolean()}
| {:internal, boolean()}
| {:passive, boolean()}
| {:no_wait, boolean()}
| {:arguments, list()}
[
{:name, binary()}
| {:type, :direct | :fanout | :topic | :match | :headers}
| {:durable, boolean()}
| {:auto_delete, boolean()}
| {:internal, boolean()}
| {:passive, boolean()}
| {:no_wait, boolean()}
| {:arguments, list()}
]
@type queue ::
{:name, binary()}
| {:durable, boolean()}
| {:auto_delete, boolean()}
| {:exclusive, boolean()}
| {:passive, boolean()}
| {:no_wait, boolean()}
| {:arguments, list()}
[
{:name, binary()}
| {:durable, boolean()}
| {:auto_delete, boolean()}
| {:exclusive, boolean()}
| {:passive, boolean()}
| {:no_wait, boolean()}
| {:arguments, list()}
]
@type binding ::
{:type, :queue | :exchange}
| {:source, binary()}
| {:destination, binary()}
| {:routing_key, binary()}
| {:no_wait, boolean()}
| {:arguments, list()}
[
{:type, :queue | :exchange}
| {:source, binary()}
| {:destination, binary()}
| {:routing_key, binary()}
| {:no_wait, boolean()}
| {:arguments, list()}
]
@type option ::
{:connection, Rabbit.Connection.t()}
| {:retry_backoff, non_neg_integer()}
Expand Down

0 comments on commit d8e98c9

Please sign in to comment.