-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
65 lines (56 loc) 路 1.7 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
59
60
61
62
63
64
65
package main
import "regexp"
type Group struct {
A any
B any
}
type Command struct {
Name string
Short string
Args []Argument
Run func([]string)
}
type Argument struct {
Identifier string
Required bool
Expect *regexp.Regexp
}
type AddressInformation struct {
IP string `json:"ip"`
Type string `json:"type"`
Continent string `json:"continent"`
ContinentCode string `json:"continent_code"`
Country string `json:"country"`
CountryCode string `json:"country_code"`
Region string `json:"region"`
RegionCode string `json:"region_code"`
City string `json:"city"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
IsEU bool `json:"is_eu"`
PostalCode string `json:"postal"`
CallingCode string `json:"calling_code"`
Capital string `json:"capital"`
Connection ConnectionInformation `json:"connection"`
Timezone TimezoneInformation `json:"timezone"`
}
type ConnectionInformation struct {
SystemNumber int `json:"asn"`
Organisation string `json:"org"`
ServiceProvider string `json:"isp"`
ISPDomain string `json:"domain"`
}
type TimezoneInformation struct {
ID string `json:"id"`
Abbreviation string `json:"abbr"`
UTC string `json:"utc"`
}
type PathAlias struct {
Short string
Path string
}
type FuelPackage struct {
Owner string `json:"owner"`
Repository string `json:"repository"`
Branch string `json:"branch"`
}