github.com/HXSecurity/DongTai-agent-go@v0.4.2/hook/kafkaGo.go (about) 1 package hook 2 3 type KafkaGo struct { 4 } 5 6 func (g *KafkaGo) GetHook() []string { 7 return []string{ 8 "kafkaGoWriter", 9 } 10 } 11 12 func (g *KafkaGo) HookAll() { 13 Hook(g.GetHook()) 14 } 15 16 func (g *KafkaGo) UnHookAll() { 17 UnHook(g.GetHook()) 18 }