Documentation
¶
Index ¶
- Variables
- func FindFromIPAPI(ip string) (countryCode string, err error)
- func GeoIpBinary(url string) (data []byte, err error)
- func GeoIpVersion(url string) (version string, err error)
- func GetASN(ipStr string) (string, error)
- func InitGeoIpASNDB()
- func InitGeoIpDB() error
- func IsCDN(ipStr string) bool
- func ReInitGeoIpDB()
- func UpdateGeoIP()
- func UpdateGeoIpASNDB()
- type CountryEmoji
- type GeoIP
- type IPAPIResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var GeoIpASNDB *geoip2.Reader
View Source
var GeoIpDBCurVersion string
Functions ¶
func FindFromIPAPI ¶ added in v1.1.12
func GeoIpBinary ¶ added in v0.9.0
func GeoIpVersion ¶ added in v0.9.0
func InitGeoIpASNDB ¶ added in v1.1.0
func InitGeoIpASNDB()
func InitGeoIpDB ¶
func InitGeoIpDB() error
func ReInitGeoIpDB ¶ added in v0.9.0
func ReInitGeoIpDB()
func UpdateGeoIpASNDB ¶ added in v1.1.0
func UpdateGeoIpASNDB()
UpdateGeoIpASNDB Force download daily
Types ¶
type CountryEmoji ¶
type GeoIP ¶
type GeoIP struct {
// contains filtered or unexported fields
}
GeoIP2
var GeoIpDB GeoIP
func (GeoIP) FindCountryIsoEmoji ¶ added in v1.0.5
type IPAPIResponse ¶ added in v1.1.12
Click to show internal directories.
Click to hide internal directories.