View Source Runbox.Message (runbox v13.0.3)

Altworx message runtime representation.

Summary

Types

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

Functions

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

new(from, type, timestamp, body)

View Source
@spec new(from(), type(), timestamp(), body()) :: t()
@spec timestamp(t()) :: timestamp()
@spec type(t()) :: type()