Discover Packages
oss.ac/ip7
pkg
geolite2
package
Version:
v0.0.0-...-4836e8e
Opens a new window with list of versions in this module.
Published: Jun 9, 2023
License: GPL-2.0
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Update will loop all config.GeoLite2DatabaseConfig within config.Cfg and fetch the maxmind
databases through the network or open local databases if the corresponding Path is set.
type Result struct {
ASN *geoip2.ASN
City *geoip2.City
Country *geoip2.Country
}
Query will query the ip address from all possible maxmindDatabases,
and return the combined Result.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.