-
Notifications
You must be signed in to change notification settings - Fork 34
/
domain.go
95 lines (73 loc) · 1.62 KB
/
domain.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// OpenRDAP
// Copyright 2017 Tom Harwood
// MIT License, see the LICENSE file.
package rdap
// Domain represents information about a DNS name and point of delegation.
//
// Domain is a topmost RDAP response object.
type Domain struct {
DecodeData *DecodeData
Common
Conformance []string `rdap:"rdapConformance"`
ObjectClassName string
Notices []Notice
Handle string
LDHName string `rdap:"ldhName"`
UnicodeName string
Variants []Variant
Nameservers []Nameserver
SecureDNS *SecureDNS
Entities []Entity
Status []string
PublicIDs []PublicID `rdap:"publicIds"`
Remarks []Remark
Links []Link
Port43 string
Events []Event
Network *IPNetwork
}
// Variant is a subfield of Domain.
type Variant struct {
DecodeData *DecodeData
Common
Relation []string
IDNTable string `rdap:"idnTable"`
VariantNames []VariantName
}
// VariantName is a subfield of Variant.
type VariantName struct {
DecodeData *DecodeData
Common
LDHName string `rdap:"ldhName"`
UnicodeName string
}
// SecureDNS is ia subfield of Domain.
type SecureDNS struct {
DecodeData *DecodeData
Common
ZoneSigned *bool
DelegationSigned *bool
MaxSigLife *uint64
DS []DSData `rdap:"dsData"`
Keys []KeyData `rdap:"keyData"`
}
// DSData is a subfield of Domain.
type DSData struct {
DecodeData *DecodeData
Common
KeyTag *uint64
Algorithm *uint8
Digest string
DigestType *uint8
Events []Event
Links []Link
}
type KeyData struct {
DecodeData *DecodeData
Flags *uint16
Protocol *uint8
Algorithm *uint8
PublicKey string
Events []Event
Links []Link
}