NAME

MYDan::Node::Call - callback interface to MYDan::Node

SYNOPSIS

use MYDan::Node::Call;

my $cb = MYDan::Node::Call->new( '/callback/dir' );

my $barbaz = $cb->run( foo => [ 1, qw( bar baz ) ] );
my $notbarbaz = $cb->run( foo => [ 0, qw( bar baz ) ] );
my $all = $cb->run( 'foo' );

CALLBACKS

Each callback must return a CODE that returns a HASH of ARRAY when invoked.

METHODS

select( %query )

Run callback ( index of %query ) by condition ( value of %query ). Returns results.

run( %query )

Alias to select().