Current section

Files

Jump to
cloister lib cloister message.ex
Raw

lib/cloister/message.ex

defmodule Cloister.Message do
@moduledoc false
@typedoc "Stage of message round-robin passing, a map of stage numbers to hashes"
@type stages :: %{required(non_neg_integer()) => binary()}
@typedoc "The type of multicall request"
@type t :: %{
__struct__: Cloister.Message,
from: nil | pid(),
stages: stages(),
message: term()
}
defstruct message: nil, from: nil, stages: %{}
end