summaryrefslogtreecommitdiff
path: root/datastruct/datastruct.go
blob: 77a695e2bf7b75a928e8d6a9971c43250a5141f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package datastruct

type ResolverFp struct {
	Dnssec        bool  `json:"dnssec"`
	QnameEncode   bool  `json:"0x20"`
	QueryMerge    int   `json:"merge_dup"`
	MaxNsDepth    int   `json:"max_ns_depth"`
	MaxCnameDepth int   `json:"max_cname_depth"`
	RetryLimit    int   `json:"retry_limit"`
	FetchLimit    int   `json:"fetch_limit"`
	TimeoutStart  int64 `json:"timeout_start"`
	TimeoutEnd    int64 `json:"timeout_end"`
}

type InitSet map[int]struct{}
type TaskMap map[int]*ResolverFp
type ResultMap map[int]ResolverFp

var Init_set = make(InitSet)
var Task_map = make(TaskMap)
var Result_map = make(ResultMap)