| 38 | } |
| 39 | |
| 40 | type Response struct { |
| 41 | IP net.IP `json:"ip"` |
| 42 | IPDecimal *big.Int `json:"ip_decimal"` |
| 43 | Country string `json:"country,omitempty"` |
| 44 | CountryISO string `json:"country_iso,omitempty"` |
| 45 | CountryEU bool `json:"country_eu"` |
| 46 | RegionName string `json:"region_name,omitempty"` |
| 47 | RegionCode string `json:"region_code,omitempty"` |
| 48 | MetroCode uint `json:"metro_code,omitempty"` |
| 49 | PostalCode string `json:"zip_code,omitempty"` |
| 50 | City string `json:"city,omitempty"` |
| 51 | Latitude float64 `json:"latitude,omitempty"` |
| 52 | Longitude float64 `json:"longitude,omitempty"` |
| 53 | Timezone string `json:"time_zone,omitempty"` |
| 54 | ASN string `json:"asn,omitempty"` |
| 55 | ASNOrg string `json:"asn_org,omitempty"` |
| 56 | Hostname string `json:"hostname,omitempty"` |
| 57 | UserAgent *useragent.UserAgent `json:"user_agent,omitempty"` |
| 58 | } |
| 59 | |
| 60 | type PortResponse struct { |
| 61 | IP net.IP `json:"ip"` |
nothing calls this directly
no outgoing calls
no test coverage detected