package Parallel::Scoreboard::PSGI::App::JSON;
use Class::Accessor::Lite;
use JSON qw(encode_json decode_json);
use Parallel::Scoreboard;
use strict;
use warnings;
Class::Accessor::Lite->mk_accesso
$s = decode_json($s);
};
}
return [
200,
[ 'Content-Type' => 'application/json; charset=utf-8' ],
[ encode_json($status) ],
1;
__END__
=head1 NAME
Parallel::Scoreboard::PSGI::App::JSON - a simple PSGI app for monitoring the output of Parallel::Scoreboard in JSON format
=head1 SYNOPSIS
use Parallel::Scoreboard;
use
eboard,
)->to_app;
=head1 SEE ALSO
L<Parallel::Scoreboard>
L<Parallel::Scoreboard::PSGI::App::JSON>
L<PSGI>
=head1 AUTHOR
Kazuho Oku E<lt>kazuhooku gmail.comE<gt>
=head1 LICENSE
This program i
no limitation on the format or the length of the statuses to be stored. Any arbitrary data (like JSON or frozen perl object) can be saved by the worker processes as their status and read from the man