API-Eulerian
view release on metacpan or search on metacpan
lib/API/Eulerian/EDW/Hook.pm view on Meta::CPAN
#/usr/bin/env perl
###############################################################################
#
# @file Hook.pm
#
# @brief Eulerian Data Warehouse Peer Hook Base class Module definition.
#
# This module is aimed to provide callback hooks userfull to process reply data.
# Library user can create is own Hook class conforming to this module interface
# to handle reply data in specific manner.
#
# @author Thorillon Xavier:x.thorillon@eulerian.com
#
# @date 26/11/2021
#
# @version 1.0
#
###############################################################################
lib/API/Eulerian/EDW/Hook.pm view on Meta::CPAN
__END__
=pod
=head1 NAME
API::Eulerian::EDW::Hook - Eulerian Data Warehouse Peer Hook module.
=head1 DESCRIPTION
This module provides callback hooks interface used to process analysis reply
data. Library user can create their own derived class matching this module
interface. It permits to process reply data in a specific manner.
=head1 METHODS
=head2 new()
I<Create a new instance of Eulerian Data Warehouse Peer Hook>
=head3 input
=over 4
lib/API/Eulerian/EDW/Parser/JSON.pm view on Meta::CPAN
{
my ( $self, $hooks ) = @_;
my $parser = $self->parser();
my $depth = -1;
my @in = ();
my $uuid;
my $msg;
my $key;
# Parse JSON stream
$parser->process_tokens(
# Property begin
start_property => sub
{
$key = shift;
},
# Property end
end_property => sub
{
},
# String
( run in 0.339 second using v1.01-cache-2.11-cpan-8d75d55dd25 )