Skip to content

golang Service use GeoIP2-Country database, listen on port 8080 receive IP address and return country and country code

License

Notifications You must be signed in to change notification settings

maozza/ip2country

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip2country service

golang Service use GeoIP2-Country database, listen on port 8080 receive IP address and return country and country code

How to use with docker (dockerize service)

Download GeoIP2-Country.mmdb or GeoLite2-Country.mmdb file to ./GeoIP2-Country.mmdb,

Build:

docker build -t ip2country .

Run container:

docker run -p 8080:8080 ip2country

request and response example:

curl http://localhost:8080/8.8.8.8

About

golang Service use GeoIP2-Country database, listen on port 8080 receive IP address and return country and country code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published