[][src]Crate geoip_rs

geoip_rs is a library used to load geoip database provided by maxmind and associate ip addresses with geographical information.

In order to be fast, the whole dataset is loaded into memory: it consumes ~300 MB of RAM. This allows the http server of the binary crate to serve ~50K requests/sec on an 8 cores Intel i7

Structs

GeoIPDB

GeoIPDB is the struct holding both blocks (ip networks and their coordinates) and locations (contintent, country, etc corresponding to some coordinates)