github.com/HXSecurity/DongTai-agent-go@v0.4.2/global/status.go (about) 1 package global 2 3 import ( 4 "github.com/HXSecurity/DongTai-agent-go/model" 5 "sync" 6 ) 7 8 type HashKeys []string 9 10 func (h *HashKeys) Some(source []string) bool { 11 for i := 0; i < len(*h); i++ { 12 for k := 0; k < len(source); k++ { 13 if (*h)[i] == source[k] { 14 return true 15 } 16 } 17 } 18 return false 19 } 20 21 var ( 22 AllHooks []model.HookStruct 23 AgentId = 0 24 PoolTreeMap = sync.Map{} 25 ResponseMap = sync.Map{} 26 ResponseHeaderMap = sync.Map{} 27 TraceId string 28 TargetTraceId string 29 )