iplocation

package module
v0.0.0-...-cc156cc Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 6 Imported by: 0

README

IP Location

The package serve method takes a location to a MaxMind GeoLite2 database found here: http://dev.maxmind.com/geoip/geoip2/geolite2/. The second parameter is the port to expose the TCP server on.

Documentation

Index

Constants

View Source
const (
	CONN_HOST                  = ""
	CONN_TYPE                  = "tcp"
	ERR_INVALID_IP             = 64
	ERR_COUNTRY_CODE_NOT_FOUND = 128
)

Variables

This section is empty.

Functions

func Serve

func Serve(file string, port string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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