Gungho::Component::Core - Gungho Core Methods
This method has been deprecated. Use run() instead.
Starts the Gungho process. It requires either the name of a config filename or a hashref.
Returns true if Gungho supports some feature $name
Sets up the Gungho environment, including calling the various setup_* methods to configure the provider, engine, handler, etc.
Sets up the various components.
Is deprecated. Use register_event instead.
Registers an observer that gets notified when $event happens. The $observer argument can be either an object implementing notify(), or a subroutine reference.
Unregisters an observer from the specified event
Is deprecated. Use notify() instead.
Notifies observers of an event.
Delegates to provider's has_requests
Delegates to provider's get_requests
Delegates to handler's handle_response
Delegates to engine's send_request upon successful DNS response
Calls provider->dispatch
Given a request, preps it before sending it to the engine
Given a response, preps it before sending it to handle_response()
Delegates to engine's send_request
Push back a request
Loads the config from $config via Config::Any.
Loads a Gungho component. Compliments the module name with 'Gungho::$prefix::', unless the name is prefixed with a '+'. In that case, no transformation is performed, and the module name is used as-is.
Returns true if the given request is allowed to be fetched (this has nothing to do with authentication and such, and is purely internal)
Shuts down Gungho. Call this if you want to tell the entire system to stop. This method in turn calls stop methods on the Engine, Provider, and Handler objects
To install Gungho, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gungho
CPAN shell
perl -MCPAN -e shell install Gungho
For more information on module installation, please visit the detailed CPAN module installation guide.