This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
modikai-fpdns-server/datastruct/datastruct.go
2024-02-02 20:57:18 +08:00

22 lines
608 B
Go

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)