...
1 package dns
2
3
4
5
6
7
8
9
10 type RecordType string
11
12 const (
13
14 A RecordType = "A"
15
16 AAAA RecordType = "AAAA"
17
18 CAA RecordType = "CAA"
19
20 CNAME RecordType = "CNAME"
21
22 MX RecordType = "MX"
23
24 NS RecordType = "NS"
25
26 PTR RecordType = "PTR"
27
28 SOA RecordType = "SOA"
29
30 SRV RecordType = "SRV"
31
32 TXT RecordType = "TXT"
33 )
34
35
36 func PossibleRecordTypeValues() []RecordType {
37 return []RecordType{A, AAAA, CAA, CNAME, MX, NS, PTR, SOA, SRV, TXT}
38 }
39
40
41 type ZoneType string
42
43 const (
44
45 Private ZoneType = "Private"
46
47 Public ZoneType = "Public"
48 )
49
50
51 func PossibleZoneTypeValues() []ZoneType {
52 return []ZoneType{Private, Public}
53 }
54
View as plain text