|
|
|
@ -4,44 +4,28 @@ import (
|
|
|
|
|
"go.dtapp.net/gostring"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (c *Client) GetGeoLite2AsnDownloadUrl() string {
|
|
|
|
|
if c.licenseKey == "" {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=YOUR_LICENSE_KEY&suffix=tar.gz", "YOUR_LICENSE_KEY", c.licenseKey)
|
|
|
|
|
var licenseKey = "" // 许可证密钥
|
|
|
|
|
|
|
|
|
|
func GetGeoLite2AsnDownloadUrl() string {
|
|
|
|
|
return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=YOUR_LICENSE_KEY&suffix=tar.gz", "YOUR_LICENSE_KEY", licenseKey)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//func (c *Client) GetGeoLite2AsnCsvDownloadUrl() string {
|
|
|
|
|
// if c.licenseKey == "" {
|
|
|
|
|
// return ""
|
|
|
|
|
// }
|
|
|
|
|
// return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip", "YOUR_LICENSE_KEY", c.licenseKey)
|
|
|
|
|
//func GetGeoLite2AsnCsvDownloadUrl() string {
|
|
|
|
|
// return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip", "YOUR_LICENSE_KEY", licenseKey)
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
func (c *Client) GetGeoLite2CityDownloadUrl() string {
|
|
|
|
|
if c.licenseKey == "" {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=YOUR_LICENSE_KEY&suffix=tar.gz", "YOUR_LICENSE_KEY", c.licenseKey)
|
|
|
|
|
func GetGeoLite2CityDownloadUrl() string {
|
|
|
|
|
return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=YOUR_LICENSE_KEY&suffix=tar.gz", "YOUR_LICENSE_KEY", licenseKey)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//func (c *Client) GetGeoLite2CityCsvDownloadUrl() string {
|
|
|
|
|
// if c.licenseKey == "" {
|
|
|
|
|
// return ""
|
|
|
|
|
// }
|
|
|
|
|
// return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip", "YOUR_LICENSE_KEY", c.licenseKey)
|
|
|
|
|
//func GetGeoLite2CityCsvDownloadUrl() string {
|
|
|
|
|
// return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip", "YOUR_LICENSE_KEY", licenseKey)
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
func (c *Client) GetGeoLite2CountryDownloadUrl() string {
|
|
|
|
|
if c.licenseKey == "" {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz", "YOUR_LICENSE_KEY", c.licenseKey)
|
|
|
|
|
func GetGeoLite2CountryDownloadUrl() string {
|
|
|
|
|
return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz", "YOUR_LICENSE_KEY", licenseKey)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//func (c *Client) GetGeoLite2CountryCsvDownloadUrl() string {
|
|
|
|
|
// if c.licenseKey == "" {
|
|
|
|
|
// return ""
|
|
|
|
|
// }
|
|
|
|
|
// return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip", "YOUR_LICENSE_KEY", c.licenseKey)
|
|
|
|
|
//func GetGeoLite2CountryCsvDownloadUrl() string {
|
|
|
|
|
// return gostring.Replace("https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=YOUR_LICENSE_KEY&suffix=zip", "YOUR_LICENSE_KEY", licenseKey)
|
|
|
|
|
//}
|
|
|
|
|