initial commit
This commit is contained in:
21
datastruct/datastruct.go
Normal file
21
datastruct/datastruct.go
Normal file
@@ -0,0 +1,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)
|
||||
Reference in New Issue
Block a user