Dancer::RPCPlugin::DispatchItem - Small object to handle dispatch-table items
use Dancer::RPCPlugin::DispatchItem; use Dancer::Plugin::RPC::JSONRPC; jsonrpc '/json' => { publish => sub { return { 'system.ping' => dispatch_item( code => MyProject::Module1->can('sub1'), package => 'Myproject::Module1', ), }; }, };
Named:
Getter for the code attibute.
code
Getter for the package attribute
package
(c) MMXVI - Abe Timmerman <abetim@cpan.org>
To install Dancer::Plugin::RPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::RPC
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::RPC
For more information on module installation, please visit the detailed CPAN module installation guide.