Documentation
¶
Index ¶
Constants ¶
View Source
const ( AssetDir = "./data" DefaultAPIListenAddr = "0.0.0.0" DefaultAPIListenPort = 5000 DefaultDBAutoUpdate = true DefaultDBAutoUpdateInterval = 24 * time.Hour )
View Source
const ( MaxMindDownloadPathQuery = "/app/geoip_download?edition_id=%s&license_key=%s&suffix=%s" DBArchiveDownloadSuffix = "tar.gz" DBSHA256FileDownloadSuffix = "tar.gz.sha256" DBTypeCountry = "GeoLite2-Country" DBTypeCity = "GeoLite2-City" DBTypeASN = "GeoLite2-ASN" DBSuffix = "mmdb" )
Variables ¶
View Source
var ( MaxMindHost = "https://download.maxmind.com" MaxMindDownloadURL = fmt.Sprintf("%s%s", MaxMindHost, MaxMindDownloadPathQuery) )
View Source
var (
ErrInvalidIP = errors.New("invalid IP")
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.