Dana M. Diederich > IPC-Transit-0.1 > IPC::Transit::Router

Download:
IPC-Transit-0.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: IPC-Transit-0.71

NAME ^

SYNOPSIS ^

IPC::Transit::Router - simple message routing and transformations

SYNOPSIS ^

 use strict;use warnings;
 use IPC::Transit::Router qw(config_trans route_trans);

 config_trans({
    routes => [
        {   match => {
                a => 'b',
            },
            forwards => [
                {   qname => 'test' },
            ]
            changes => [
                {   who => 'there' },
                {   123 => 234,
                    xray => 'kilo'
                }
            ]
        }
    ]
 });

 route_trans({a => 'b'});

 The follow message will appear on the local 'test' queue:
 {   a => 'b',
     who => 'there',
     123 => 234,
     xray => 'kilo',
 }

COPYRIGHT ^

Copyright (c) 2012, Dana M. Diederich. All Rights Reserved.

LICENSE ^

This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License (see http://www.perl.com/perl/misc/Artistic.html)

AUTHOR ^

Dana M. Diederich <diederich@gmail.com>

syntax highlighting: