module

JaneHQ::Processor

Decodes one raw agent message and persists it. The agent sends its report as a JSON string that is then msgpack-encoded (see jane/src/daemon.cr), so we msgpack-decode the bytes to a String and JSON-parse that.

Class methods

decode(bytes : Bytes) : Payload
Source
process(bytes : Bytes, storage : Storage) : Payload
Source