-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpingResponse.go
56 lines (52 loc) · 1.69 KB
/
pingResponse.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
package main
import (
"github.com/Tnze/go-mc/chat"
_ "github.com/Tnze/go-mc/data/lang/en-us"
"github.com/google/uuid"
)
type Status struct {
Description chat.Message
Players struct {
Max int
Online int
Sample []struct {
ID uuid.UUID
Name string
}
}
Version struct {
Name string
Protocol int
}
}
type IpData struct {
IP string `json:"ip"`
Success bool `json:"success"`
Type string `json:"type"`
Continent string `json:"continent"`
ContinentCode string `json:"continent_code"`
Country string `json:"country"`
CountryCode string `json:"country_code"`
CountryFlag string `json:"country_flag"`
CountryCapital string `json:"country_capital"`
CountryPhone string `json:"country_phone"`
CountryNeighbours string `json:"country_neighbours"`
Region string `json:"region"`
City string `json:"city"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Asn string `json:"asn"`
Org string `json:"org"`
Isp string `json:"isp"`
Timezone string `json:"timezone"`
TimezoneName string `json:"timezone_name"`
TimezoneDstOffset int `json:"timezone_dstOffset"`
TimezoneGmtOffset int `json:"timezone_gmtOffset"`
TimezoneGmt string `json:"timezone_gmt"`
Currency string `json:"currency"`
CurrencyCode string `json:"currency_code"`
CurrencySymbol string `json:"currency_symbol"`
CurrencyRates float64 `json:"currency_rates"`
CurrencyPlural string `json:"currency_plural"`
CompletedRequests int `json:"completed_requests"`
}