Box.PubSub.Message (box v0.15.1)

View Source

Pub sub message wrapping structure

Summary

Types

input_message()

@type input_message() :: atom() | {message(), any()}

message()

@type message() :: atom()

t()

@type t() :: %Box.PubSub.Message{
  from: pid(),
  message: message(),
  metadata: map(),
  params: any(),
  topic: String.t()
}

Functions

new(message, topic, options \\ [])

@spec new(message(), String.t(), Keyword.t()) :: t()

Builds a pub sub message