NAME
Mvalve::Message - A Message Object
SYNOPSIS
use Mvalve::Message;
my $message = Mvalve::Message->new(
headers => {
from => 'me',
to => 'you',
},
content => {
random => 'content',
}
);
my $serialized = $message->serialize;
my $materialized = Mvalve::Message->deserialize($serialized);
METHODS
BUILD
Custom BUILD() for Moose
SERIALIZER
Returns the serializer object to use
serialize
Serializes the message
deserialize
Deserializes a packed structure to a message