-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
58 lines (40 loc) · 1.49 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package extremeiplookup
type IPInfo struct {
// Client IP address or IP address specified.
Query string `json:"query,omitempty"`
// Business, Education or Residential.
// (Residential is an IP address from an Internet, Hosting or Cloud provider)
IPType string `json:"ipType,omitempty"`
// Name of Business / Education Organization.
BusinessName string `json:"businessName,omitempty"`
// Website domain of Business / Education Organization.
BusinessWebsite string `json:"businessWebsite,omitempty"`
// Name of the continent.
Continent string `json:"continent,omitempty"`
// Two-letter ISO 3166-1 alpha-2 country code.
CountryCode string `json:"countryCode,omitempty"`
// Name of the country.
Country string `json:"country,omitempty"`
// Name of the region.
Region string `json:"region,omitempty"`
// Name of the city.
City string `json:"city,omitempty"`
// Latitude.
Latitude string `json:"lat,omitempty"`
// Longitude.
Longitude string `json:"lon,omitempty"`
// Resolved IP Name.
IPName string `json:"ipName,omitempty"`
// Organization Name
Organization string `json:"org,omitempty"`
// ISP Name
ISP string `json:"isp,omitempty"`
// Pro Feature! Samples: America/Chicago, Europe/London, see all on Wikipedia
Timezone string `json:"timezone,omitempty"`
// Pro Feature! Samples: -10:00, +02:00
UTCOffset string `json:"utcOffset,omitempty"`
// Success or fail
Status string `json:"status,omitempty"`
// Extra status message if fail
Message string `json:"message,omitempty"`
}