microservice-geoip

command module
v0.0.0-...-3c93de3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 7 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL