App-Cerberus

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

dist.ini
example/cerberus.yml
lib/App/Cerberus.pm
lib/App/Cerberus/Plugin.pm
lib/App/Cerberus/Plugin/BrowserDetect.pm
lib/App/Cerberus/Plugin/GeoIP.pm
lib/App/Cerberus/Plugin/Throttle.pm
lib/App/Cerberus/Plugin/Throttle/Memcached.pm
lib/App/Cerberus/Plugin/Throttle/Memory.pm
lib/App/Cerberus/Plugin/TimeZone.pm
t/release-eol.t
t/release-no-tabs.t
t/release-pod-syntax.t

README  view on Meta::CPAN


    App::Cerberus packages up all this functionality into a simple web
    service (using Plack), freeing up your web processes to deal with just
    your own code.

    A query to App::Cerberus is a simple HTTP GET, and the response is JSON.

PLUGINS
  App::Cerberus::Plugin::GeoIP
    Uses Geo::IP with the GeoLite City database
    <http://www.maxmind.com/app/geolite> to provide geo-location at the city
    level.

    For instance:

        "geo": {
            "area_code": 201,
            "longitude": "-74.0781",
            "country_name": "United States",
            "region_name": "New Jersey",
            "country_code": "US",

lib/App/Cerberus.pm  view on Meta::CPAN

App::Cerberus packages up all this functionality into  a simple web service
(using L<Plack>), freeing up your web processes to deal with just your own
code.

A query to L<App::Cerberus> is a simple HTTP GET, and the response is JSON.

=head1 PLUGINS

=head2 L<App::Cerberus::Plugin::GeoIP>

Uses L<Geo::IP> with the L<GeoLite City database|http://www.maxmind.com/app/geolite>
to provide geo-location at the city level.

For instance:

    "geo": {
        "area_code": 201,
        "longitude": "-74.0781",
        "country_name": "United States",
        "region_name": "New Jersey",
        "country_code": "US",

lib/App/Cerberus/Plugin/GeoIP.pm  view on Meta::CPAN

=head1 NAME

App::Cerberus::Plugin::GeoIP - Add geo-location information the user's IP address

=head1 VERSION

version 0.11

=head1 DESCRIPTION

This plugin uses the freely available L<GeoLite City|http://www.maxmind.com/app/geolite>
database from L<MaxMind|http://www.maxmind.com> to add geo-location data to
Cerberus.

For instance:

    "geo": {
        "area_code": 201,
        "longitude": "-74.0781",
        "country_name": "United States",
        "region_name": "New Jersey",

t/release-no-tabs.t  view on Meta::CPAN

my @files = (
    'bin/cerberus.pl',
    'lib/App/Cerberus.pm',
    'lib/App/Cerberus/Plugin.pm',
    'lib/App/Cerberus/Plugin/BrowserDetect.pm',
    'lib/App/Cerberus/Plugin/GeoIP.pm',
    'lib/App/Cerberus/Plugin/Throttle.pm',
    'lib/App/Cerberus/Plugin/Throttle/Memcached.pm',
    'lib/App/Cerberus/Plugin/Throttle/Memory.pm',
    'lib/App/Cerberus/Plugin/TimeZone.pm',
    't/release-eol.t',
    't/release-no-tabs.t',
    't/release-pod-syntax.t'
);

notabs_ok($_) foreach @files;
done_testing;



( run in 0.752 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )