initial commit

This commit is contained in:
MDK
2024-02-02 20:57:18 +08:00
commit e9345e9fa7
6 changed files with 667 additions and 0 deletions

21
datastruct/datastruct.go Normal file
View 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)