Categorygithub.com/microservices-today/microservice-geoip
repositorypackage
0.0.0-20221113105321-3c93de31cbca
Repository: https://github.com/microservices-today/microservice-geoip.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

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 ./...