IPC::Transit::Router - Allows fast, simple routing of Transit messages
use IPC::Transit; use IPC::Transit::Router qw(troute troute_config); troute_config({ routes => [ { match => { a => 'b', }, forwards => [ { qname => 'some_q' } ], transform => { x => 'y', }, } ], }); troute({a => 'b'}); my $ret = IPC::Transit::receive(qname => 'some_q'); #$ret contains { a => 'b', x => 'y' }
This library allows fast, simple routing of Transit messages
The config used by all mroute calls
Pass $message through the config; this will emit zero or more IPC::Transit messages.
A config validator.
None known.
Dana M. Diederich <diederich@gmail.com>
Copyright 2012,2013 Dana M. Diederich.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
http://www.perlfoundation.org/artistic_license_2_0
To install IPC::Transit::Router, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPC::Transit::Router
CPAN shell
perl -MCPAN -e shell install IPC::Transit::Router
For more information on module installation, please visit the detailed CPAN module installation guide.