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