Osgood::ClientClient for the Osgood Passive, Persistent Event Queue | |
Download |
Osgood::Client Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Cory G Watson
- Publisher web site:
- http://search.cpan.org/~gphat/
Osgood::Client Tags
Osgood::Client Description
Client for the Osgood Passive, Persistent Event Queue Osgood::Client is a Perl module that provides a client for sending events to or retrieving events from an Osgood queue.SYNOPSISTo send some events: my $event = Osgood::Event->new( object => 'Moose', action => 'farted', date_occurred => DateTime->now ); my $list = Osgood::EventList->new(events => ) my $client = Osgood::Client->new( url => 'http://localhost', list => $list ); my $retval = $client->send; if($list->size == $retval) { print "Success :)\n"; } else { print "Failure :(\n"; }To query for events use DateTime; use Osgood::Client; use URI; my $client = Osgood::Client->new( url => URI->new('http://localhost:3000'), ); $client->query({ object => 'Moose', action => 'farted' }); if($client->list->size == 1) { print "Success\n"; } else { print "Failure\n"; } Requirements: · Perl
Osgood::Client Related Software