The following documentation is automatically generated. Please do not edit this file, but rather the original, inline with Myriad::RPC::Message at lib/Myriad/RPC/Message.pm (on the system that originally ran this). If you do edit this file, and don't want your changes to be removed, make sure you change the first line.
Myriad::RPC::Message - RPC message implementation
Myriad::RPC::Message->new();
This class is to handle the decoding/encoding and verification of the RPC messages received from the transport layer. It will throw an exception when the message is invalid or doesn't match the structure.
The ID of the message given by the requester.
The ID of the message given by Redis, to be used in xack later.
The name of the procedure we are going to execute.
A string that should identify the sender of the message for the transport.
An epoch that represents when the timeout of the message.
A JSON encoded string contains the argument of the procedure.
The response to this message.
information related to the request should be returned back to the requester.
Tracing information.
Build a new message.
Return a simple hash with the message data, it mustn't return nested hashes so it will convert them to JSON encoded strings.
a static method (can't be done with Object::Pad currently) that tries to parse a hash and return a Myriad::RPC::Message.
the hash should comply with the format returned by as_hash.
as_hash
returns the message data as a JSON string.
a static method that tries to parse a JSON string and return a Myriad::RPC::Message.
A static method used in the from_* methods family to make sure that we have the needed information.
from_*
A helper method to enode the hash fields into JSON string.
A helper sub to decode some field from JSON string into Perl hashes.
BUILDARGS
Deriv Group Services Ltd. DERIV@cpan.org.
DERIV@cpan.org
See "CONTRIBUTORS" in Myriad for full details.
Copyright Deriv Group Services Ltd 2020-2021. Licensed under the same terms as Perl itself.
To install Myriad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myriad
CPAN shell
perl -MCPAN -e shell install Myriad
For more information on module installation, please visit the detailed CPAN module installation guide.