herald v0.1.0-alpha.1 Develop.Test

Link to this section Summary

Functions

Create new message from a JSON string

Create new message and validate their payload

Link to this section Types

Link to this type

t()

t() :: %Develop.Test{
  errors: term(),
  id: UUID.t(),
  payload: map(),
  queue: binary(),
  valid?: boolean()
}

Link to this section Functions

Link to this function

from_string(queue, payload, opts \\ [])

from_string(binary(), map(), any()) :: t()

Create new message from a JSON string

Basicaly, its decode the JSON and forward it to new/3

Link to this function

my_func(message)

Link to this function

new(queue, payload, opts \\ [])

new(binary(), map(), any()) :: t()

Create new message and validate their payload