package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Apr 6, 2022
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func GetIPASN(ip string, giAsnDb *geoip2.Reader) (asn string)
Finds and returns the ASN of the given ip
func GetIPCountry(ip string, giCountryDb *geoip2.Reader) (country string)
Finds and returns the conuntry of the given ip
type GeoipDB struct {
CountryDb *geoip2.Reader
AsnDb *geoip2.Reader
}
Initialize GEO IP databases
Source Files
¶
Click to show internal directories.
Click to hide internal directories.