File Coverage

blib/lib/Message/Passing/AMQP.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Message::Passing::AMQP;
2 1     1   1307 use Moose ();
  1         2  
  1         23  
3 1     1   4 use namespace::autoclean;
  1         2  
  1         10  
4              
5             our $VERSION = "0.006";
6             $VERSION = eval $VERSION;
7              
8             1;
9              
10             =head1 NAME
11              
12             Message::Passing::AMQP - input and output message-pass messages via AMQP.
13              
14             =head1 SYNOPSIS
15              
16             # Terminal 1:
17             $ message-pass --input STDIN --output AMQP --output_options '{"exchange_name":"test","hostname":"127.0.0.1","username":"guest","password":"guest"}'
18             {"data":{"some":"data"},"@metadata":"value"}
19              
20             # Terminal 2:
21             $ message-pass --output STDOUT --input AMQP --input_options '{"queue_name":"test","exchange_name":"test","hostname":"127.0.0.1","username":"guest","password":"guest"}'
22             {"data":{"some":"data"},"@metadata":"value"}
23              
24             =head1 DESCRIPTION
25              
26             An AMQP adaptor for L<Message::Passing> for speaking to AMQP servers, for example L<RabbitMQ|http://www.rabbitmq.com/> or QPID.
27              
28             =head1 PROTOCOL VERSION
29              
30             This adaptor supports all versions of the AMQP protocol supported by L<AnyEvent::RabbitMQ>.
31              
32             =head1 SEE ALSO
33              
34             =over
35              
36             =item L<Message::Passing::Output::AMQP>
37              
38             =item L<Message::Passing::Input::AMQP>
39              
40             =item L<Message::Passing>
41              
42             =item L<AnyEvent::RabbitMQ>
43              
44             =back
45              
46             =head1 AUTHOR
47              
48             Tomas (t0m) Doran <bobtfish@bobtfish.net>
49              
50             =head1 COPYRIGHT
51              
52             Copyright The above mentioned AUTHOR 2012.
53              
54             =head1 LICENSE
55              
56             GNU Library General Public License, Version 2.1
57              
58             =cut
59              
60             1;
61