MCPcopy Create free account
hub / github.com/mpolden/echoip / Response

Struct Response

http/http.go:40–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40type 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
60type PortResponse struct {
61 IP net.IP `json:"ip"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected