forked from d3mondev/puredns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.go
27 lines (24 loc) · 839 Bytes
/
type.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
package massdns
// JSONRecord contains a record from a massdns output file.
type JSONRecord struct {
TTL int `json:"ttl"`
Type string `json:"type"`
Class string `json:"class"`
Name string `json:"name"`
Data string `json:"data"`
}
// JSONResponseData contains the response data from a massdns output file.
type JSONResponseData struct {
Answers []JSONRecord `json:"answers"`
Authorities []JSONRecord `json:"authorities"`
Additionals []JSONRecord `json:"additionals"`
}
// JSONResponse contains the response from a massdns output file.
type JSONResponse struct {
Name string `json:"name"`
Type string `json:"type"`
Class string `json:"class"`
Status string `json:"status"`
Data JSONResponseData `json:"data"`
Resolver string `json:"resolver"`
}