microservice-geoip
Microservice for Detecting Country by IP Address
Installation
go get
Try locally
export PORT=9090
go run main.go
Get Country by IP
curl localhost:9090/country?ip=<YOUR_IP>
Get Outbound IP
curl localhost:9090/outbound
Run on Docker
docker build . -t geoip
To run geoip deamon
docker run -d -p 9090:9090 --name geoip-instance --rm geoip
Testing
Run the following command
go test -v ./...