Categorygithub.com/cc14514/go-geoip2
modulepackage
0.0.0-20190105051856-0a1854480a11
Repository: https://github.com/cc14514/go-geoip2.git
Documentation: pkg.go.dev

# README

# Packages

No description provided by the author

# Functions

FromBytes takes a byte slice corresponding to a GeoIP2/GeoLite2 database file and returns a DBReader struct or an error.
Open takes a string path to a file and returns a DBReader struct or an error.
No description provided by the author

# Structs

The AnonymousIP struct corresponds to the data in the GeoIP2 Anonymous IP database.
The ASN struct corresponds to the data in the GeoLite2 ASN database.
The City struct corresponds to the data in the GeoIP2/GeoLite2 City databases.
The ConnectionType struct corresponds to the data in the GeoIP2 Connection-Type database.
The Country struct corresponds to the data in the GeoIP2/GeoLite2 Country databases.
DBReader holds the driver.DBReader struct.
The Domain struct corresponds to the data in the GeoIP2 Domain database.
InvalidMethodError is returned when a lookup method is called on a database that it does not support.
The ISP struct corresponds to the data in the GeoIP2 ISP database.
UnknownDatabaseTypeError is returned when an unknown database type is opened.