geoip2utils

package
v0.0.0-...-4d2d905 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ASNDBPath = "/usr/share/GeoIP/GeoLite2-ASN.mmdb"
View Source
const CityDBPath = "/usr/share/GeoIP/GeoLite2-City.mmdb"
View Source
const CountryDBPath = "/usr/share/GeoIP/GeoLite2-Country.mmdb"

Variables

This section is empty.

Functions

This section is empty.

Types

type IPInfo

type IPInfo struct {
	IP string

	ASNumber uint
	ASName   string

	Country    string
	City       string
	PostalCode string
	Latitude   float64
	Longitude  float64
}

func Info

func Info(ipAdr string) (*IPInfo, error)

func (IPInfo) String

func (i IPInfo) String() string

Jump to

Keyboard shortcuts

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