-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefs.go
53 lines (43 loc) · 821 Bytes
/
defs.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
package godaddyclient
type Result struct {
StatusCode int
Message string
}
type GoaddyClient struct {
api IGodaddyAPI
Domain IDomain
}
type GodaddyAPI struct {
BaseURL string
Version string
Key string
Secret string
}
var RecordType DNSRecordType
type DNSRecordType struct {
A dnsRecordType
AAAA dnsRecordType
CName dnsRecordType
MX dnsRecordType
TXT dnsRecordType
SRV dnsRecordType
CAA dnsRecordType
NS dnsRecordType
}
type dnsRecordType byte
const (
a dnsRecordType = 0
aaaa dnsRecordType = 1
cname dnsRecordType = 2
mx dnsRecordType = 3
txt dnsRecordType = 4
srv dnsRecordType = 5
caa dnsRecordType = 6
ns dnsRecordType = 7
)
type HTTPMethod string
const (
GET HTTPMethod = "GET"
PUT HTTPMethod = "PUT"
DELETE HTTPMethod = "DELETE"
)