TaskBunny v0.0.1-dev.6 TaskBunny.Message

Functions to access messages and its meta data.

Summary

Functions

Add an error log to message body

Decode message body in JSON to map

Encode message body in JSON with job and arugment

Returns a number of errors occurred for the message

Functions

add_error_log(message, error)
add_error_log(String.t | map, any) :: String.t | map

Add an error log to message body.

decode(message)
decode(String.t) :: map

Decode message body in JSON to map

encode(job, payload)
encode(atom, any) :: String.t

Encode message body in JSON with job and arugment.

failed_count(message)
failed_count(String.t | map) :: integer

Returns a number of errors occurred for the message