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

FreeBSD Manual Pages

  
 
  

home | help
Dancer::RPCPlugin::DisUserhContributed Perl Dancer::RPCPlugin::DispatchItem(3)

NAME
       Dancer::RPCPlugin::DispatchItem - Small object to handle	dispatch-table
       items

SYNOPSIS
	   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',
		       ),
		   };
	       },
	   };

EXPORT
   dispatch_item(%arguments)
       Arguments

       Named:

       code => $code_ref [Required]
       package => $package [Optional]

DESCRIPTION
   Dancer::RPCPlugin::DispatchItem->new(%arguments)
       Arguments

       Named:

       code => $code_ref [Required]
       package => $package [Optional]

   $di->code
       Getter for the "code" attibute.

   $di->package
       Getter for the "package"	attribute

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

perl v5.24.1			  2016-02-01Dancer::RPCPlugin::DispatchItem(3)

NAME | SYNOPSIS | EXPORT | DESCRIPTION | COPYRIGHT

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

home | help