Toolbox.Message (runbox v7.0.1)

Altworx message runtime representation.

Link to this section Summary

Link to this section Types

@type body() :: term()
@type from() :: atom() | String.t()
@type origin() :: %{offset: non_neg_integer(), topic: String.t()} | nil
@type t() :: %Toolbox.Message{
  body: body(),
  from: from(),
  origin: origin(),
  timestamp: timestamp(),
  type: type()
}
@type timestamp() :: integer()
@type type() :: atom() | String.t()

Link to this section Functions

@spec body(t()) :: body()
@spec from(t()) :: from()
Link to this function

new(from, type, timestamp, body)

@spec new(from(), type(), timestamp(), body()) :: t()
Link to this function

timestamp(message)

@spec timestamp(t()) :: timestamp()
@spec type(t()) :: type()