Runbox.Message (runbox v26.0.0)

View Source

Altworx message runtime representation.

Summary

Types

body()

@type body() :: term()

from()

@type from() :: atom() | String.t()

origin()

@type origin() ::
  %{offset: non_neg_integer(), topic: String.t(), partition: non_neg_integer()}
  | nil

t()

@type t() :: %Runbox.Message{
  body: body(),
  from: from(),
  origin: origin(),
  timestamp: timestamp(),
  type: type()
}

timestamp()

@type timestamp() :: integer()

type()

@type type() :: atom() | String.t()

Functions

body(message)

@spec body(t()) :: body()

from(message)

@spec from(t()) :: from()

new(from, type, timestamp, body)

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

timestamp(message)

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

type(message)

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