Dancer::RPCPlugin::DispatchMethodList - Class for maintaining a global methodlist.
use Dancer::RPCPlugin::DispatchMethodList; my $methods = Dancer::RPCPlugin::DispatchMethodList->new(); $methods->set_partial( protocol => <jsonrpc|restrpc|xmlrpc>, endpoint => </configured>, methods => [ @method_names ], ); # .... my $method_list = $methods->list_methods(protocol => <any|jsonrpc|restrpc|xmlrpc>);
This class implements a singleton that can hold the collection of all method names.
None!
$_singleton = bless $parameters, $class;
Named, list:
$self
Method that returns information about the dispatch-table.
Positional, list
In case of no $protocol:
$protocol
{ xmlrpc => { $endpoint1 => [ list ], $endpoint2 => [ list ], }, jsonrpc => { $endpoint1 => [ list ], $endpoint2 => [ list ], }, }
In case of specified $protocol:
{ $endpoint1 => [ list ], $endpoint2 => [ list ], }
(c) MMXVI - Abe Timmerman <abeltje@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.