CargueroTaskBunny.Message (CargueroCargueroTaskBunny v0.0.6) View Source
Functions that work on CargueroTaskBunny messages.
It's a semi private module used by Job or Worker. You shouldn't have to deal with it normally.
However in case you need to encode/decode CargueroTaskBunny messages, this module will help.
Link to this section Summary
Functions
Add an error log to message body.
Decode message body in JSON to map data.
Similar to decode/1 but raises an exception on error.
Encode message body in JSON with job and argument.
Similar to encode/2 but raises an exception on error.
Returns a number of errors occurred for the message.
Link to this section Functions
Specs
add_error_log(String.t() | map(), CargueroTaskBunny.JobError.t()) :: String.t() | map()
Add an error log to message body.
Specs
Decode message body in JSON to map data.
Specs
Similar to decode/1 but raises an exception on error.
Specs
Encode message body in JSON with job and argument.
Specs
Similar to encode/2 but raises an exception on error.
Specs
Returns a number of errors occurred for the message.