Geolix.Database

Module to interact with the geo database.

This includes proxy methods for reading the database and lookup up entries.

Source

Summary

lookup(ip, opts)

Looks up IP information

lookup_single(ip, where, opts)
read_database(which, filename)

Reads a database using Geolix.Reader.read_database/1 and stores the parts in their respective storage agents

Functions

lookup(ip, opts)

Specs:

  • lookup(ip :: tuple, opts :: Keyword.t) :: %{}

Looks up IP information.

Source
lookup_single(ip, where, opts)
Source
read_database(which, filename)

Specs:

  • read_database(atom, String.t) :: :ok | {:error, term}

Reads a database using Geolix.Reader.read_database/1 and stores the parts in their respective storage agents.

Source