Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Dancer::RPCPlugin::DisUserhContributedDPncer::RPCPlugin::DispatchMethodList(3)

NAME
       Dancer::RPCPlugin::DispatchMethodList - Class for maintaining a global
       methodlist.

SYNOPSIS
	   use Dancer::RPCPlugin::DispatchMethodList;
	   my $methods = Dancer::RPCPlugin::DispatchMethodList->new();

	   $methods->set_partial(
	       protocol	=> <jsonrpc|xmlrpc>,
	       endpoint	=> </configured>,
	       methods	=> [ @method_names ],
	   );

	   # ....
	   my $methods = list_methods(<any|jsonrpc|xmlrpc>);

DESCRIPTION
       This class implements a singleton that can hold the collection of all
       method names.

   my $dml = Dancer::RPCPlugin::DispatchMethodList->new()
       Parameters

       None!

       Responses

	   $singleton =	bless $parameters, $class;

   $dml->set_partial(%parameters)
       Parameters

       Named, list:

       protocol	=> <jsonrpc|xmlrpc>
       endpoint	=> $endpoint
       methods => \@method_list

       Responses

	   $self

   list_methods(@parameters)
       This is not a method, but an exported function.

       Parameters

       Positional, list:

       $protocol => undef || <any|jsonrpc|xmlrpc>

       Responses

       In case of no $protocol:

	   {
	       xmlrpc => {
		   $endpoint1 => [ list	],
		   $endpoint2 => [ list	],
	       },
	       jsonrpc => {
		   $endpoint1 => [ list	],
		   $endpoint2 => [ list	],
	       },
	   }

       In case of specified $protocol:

	   {
	       $endpoint1 => [ list ],
	       $endpoint2 => [ list ],
	   }

COPYRIGHT
       (c) MMXVI - Abe Timmerman <abeltje@cpan.org>

perl v5.24.1			  2016Dancer::RPCPlugin::DispatchMethodList(3)

NAME | SYNOPSIS | DESCRIPTION | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Dancer::RPCPlugin::DispatchMethodList&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help