Dancer2::RPCPlugin::DispatchMethodList - Class for maintaining a global methodlist.
use Dancer2::RPCPlugin::DispatchMethodList; my $methods = Dancer2::RPCPlugin::DispatchMethodList->new(); $methods->set_partial( protocol => <jsonrpc|restrpc|xmlrpc>, endpoint => </configured>, methods => [ @method_names ], ); # Somewhere else my $dml = Dancer2::RPCPlugin::DispatchMethodList->new(); my $methods = $dml->list_methods(<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) MMXXII - Abe Timmerman <abeltje@cpan.org>
To install Dancer2::Plugin::RPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::RPC
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::RPC
For more information on module installation, please visit the detailed CPAN module installation guide.