Lim - Framework for RESTful JSON/XML, JSON-RPC, XML-RPC and SOAP
Version 0.19
use Lim;
Lim provides a framework for calling plugins over multiple protocols.
It uses AnyEvent for async operations and SOAP::Lite, XMLRPC::Lite and JSON::XS for processing protocol messages.
There are 3 parts in Lim that can work independenly, a Server part, a Client part and a CLI part.
All plugins are also divded into these 3 parts and use the base classes Lim::Component::Server, Lim::Component::Client and Lim::Component::CLI.
The built in Server part is called Lim::Agent and can be started with lim-agentd. It will use Lim::Plugins to load all available plugins on the system and serve their Server part to Lim::Server if available.
The built in CLI part is called Lim::CLI and can be started with lim-cli. It will use Lim::Plugins to load all available plugins on the system and use their CLI part if available.
Semi constant sub that controls if object debugging information should sent to the log.
Semi constant sub that controls if RPC debugging information should sent to the log.
Semi constant sub that controls if debugging information should sent to the log.
Common usage: Lim::DEBUG and $self->{logger}->debug(...);
Semi constant sub that controls if informational logs should sent to the log.
Common usage: Lim::INFO and $self->{logger}->info(...);
Semi constant sub that controls if warnings should sent to the log.
Common usage: Lim::WARN and $self->{logger}->warn(...);
Semi constant sub that controls if errors should sent to the log.
Common usage: Lim::ERR and $self->{logger}->error(...);
Return a hash reference to the configuration.
Try and merge the given hash reference $config into Lim's configuration.
$config
Load the given configuration $filename in YAML format and merge it into Lim's configuration.
$filename
Load the given configuration in directory $directory and merge it into Lim's configuration.
$directory
Parse options given at command line and add them into configuration. Option subgroups are seperated by . (for example log.obj_debug=0).
Used after LoadConfig and/or LoadConfigDirectory to update and do post configuration tasks.
Jerry Lundström, <lundstrom.jerry at gmail.com>
<lundstrom.jerry at gmail.com>
Please report any bugs or feature requests to https://github.com/jelu/lim/issues.
You can find documentation for this module with the perldoc command.
perldoc Lim
You can also look for information at:
Lim issue tracker (report bugs here)
https://github.com/jelu/lim/issues
Copyright 2012-2013 Jerry Lundström.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Lim, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lim
CPAN shell
perl -MCPAN -e shell install Lim
For more information on module installation, please visit the detailed CPAN module installation guide.