No description, website, or topics provided.
Clojure
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src/ring_geoipviz
test/ring_geoipviz
.gitignore
README.md
project.clj

README.md

ring-geoipviz

Ring middleware for visualizing incoming client requests on a map. This is pretty hacked-together, so THAR BE DRAGONS!

Usage

Wrap your Ring app like so:

(-> your-ring-app
    (wrap-with-buffer :geoip "/geoviz" 100)
    (wrap-with-geoip [:remote-addr])
    (wrap-params))

wrap-with-buffer and wrap-with-geoip are included in this library, and wrap-params is provided by ring-core.

That will "mount" this middleware at "/geoviz". Hitting "/geoviz/viz" will display an HTML page that will display incoming requests on its map.

License

Copyright © 2012

Apache licensed.