-
Notifications
You must be signed in to change notification settings - Fork 0
/
hover_json.go
45 lines (38 loc) · 1.15 KB
/
hover_json.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
package main
type HoverDnsDomainEntry struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Content string `json:"content"`
Ttl int32 `json:"ttl"`
IsDefault bool `json:"is_default"`
CanRevert bool `json:"can_revert"`
}
type HoverDnsDomain struct {
Name string `json:"domain_name"`
Id string `json:"id"`
Active bool `json:"active"`
Entries []HoverDnsDomainEntry `json:"entries"`
}
type HoverDnsResult struct {
Succeeded bool `json:"succeeded"`
Error string `json:"error"`
ErrorCode string `json:"error_code"`
Domains []HoverDnsDomain `json:"domains"`
}
type HoverDnsUpdateRecords struct {
Id string `json:"id"`
}
type HoverDnsUpdateDomain struct {
Id string `json:"id"`
Records []HoverDnsUpdateRecords `json:"dns_records"`
}
type HoverDnsUpdateFields struct {
Name string `json:"name"`
Type string `json:"type"`
Content string `json:"content"`
}
type HoverDnsUpdatePayload struct {
Domain HoverDnsUpdateDomain `json:"domain"`
Fields HoverDnsUpdateFields `json:"fields"`
}