package
module
Version:
v0.0.0-...-337141b
Opens a new window with list of versions in this module.
Published: Nov 2, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
func InitASN() *maxminddb.Reader
func InitCity() *maxminddb.Reader
type ASN struct {
ISPNumber int `maxminddb:"autonomous_system_number" json:"autonomous_system_number"`
ISPOrganization string `maxminddb:"autonomous_system_organization" json:"autonomous_system_organization"`
Name string `json:"name"`
}
type City struct {
GeonameId int `maxminddb:"geoname_id" json:"geoname_id"`
Names Names `maxminddb:"names" json:"names"`
}
type Continent struct {
Code string `maxminddb:"code" json:"code"`
GeonameId int `maxminddb:"geoname_id" json:"geoname_id"`
Names Names `maxminddb:"names" json:"names"`
}
type Country struct {
IsoCode string `maxminddb:"iso_code" json:"iso_code"`
GeonameId int `maxminddb:"geoname_id" json:"geoname_id"`
Names Names `maxminddb:"names" json:"names"`
}
type GeoCity struct {
City City `maxminddb:"city" json:"city"`
Continent Continent `maxminddb:"continent" json:"continent"`
Location Location `maxminddb:"location" json:"location"`
RegisteredCountry RegisteredCountry `maxminddb:"registered_country" json:"registered_country"`
Country Country `maxminddb:"country" json:"country"`
Subdivisions []Subdivision `maxminddb:"subdivisions" json:"subdivisions"`
}
type Location struct {
Aadius int `maxminddb:"aadius" json:"aadius"`
Latitude float64 `maxminddb:"latitude" json:"latitude"`
Longitude float64 `maxminddb:"longitude" json:"longitude"`
TimeZone string `maxminddb:"time_zone" json:"time_zone"`
}
type Origin struct {
Origin string `json:"origin"`
Country string `json:"country"`
Province string `json:"province"`
City string `json:"city"`
ASN string `json:"asn"`
Longitude string `json:"longitude"`
Latitude string `json:"latitude"`
}
type RegisteredCountry struct {
GeonameId int `maxminddb:"geoname_id" json:"geoname_id"`
IsoCode string `maxminddb:"iso_code" json:"iso_code"`
Names Names `maxminddb:"names" json:"names"`
}
type Subdivision struct {
GeonameId int `maxminddb:"geoname_id" json:"geoname_id"`
IsoCode string `maxminddb:"iso_code" json:"iso_code"`
Names Names `maxminddb:"names" json:"names"`
}
Source Files
¶
Directories
¶
cmd
|
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.