Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

IPIP.net File Format Decoder

Build Status Coverage Status hex.pm version hex.pm downloads hex.pm license GitHub top language

Installation

If available in Hex, the package can be installed by adding ipdb_decoder to your list of dependencies in mix.exs:

def deps do
  [
    {:ipdb_decoder, "~> 0.1.0"}
  ]
end

Usage

To prepare lookups in a given database, you need parse first and hold the results for later usage:

iex(1)> {:ok, database} = IPDBDecoder.parse_database_file("/path/to/ipipfree.ipdb")

Using the returned database contents, you could start looking up

iex(2)> IPDBDecoder.lookup(database, "127.0.0.1")
{:ok, %{}}

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ipdb_decoder.

ChangeLog

CHANGELOG

License

Apache 2.0

About

IPIP.net File Format (GeoIP database) Decoder, IPDB Decoder by Elixir

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.