github.com/HXSecurity/DongTai-agent-go@v0.4.2/hook/gin.go (about) 1 package hook 2 3 type Gin struct { 4 } 5 6 func (g *Gin) GetHook() []string { 7 return []string{ 8 "ginEngineServerHTTP", 9 "ginContextShouldBindWith", 10 "ginContextShouldBindUri", 11 "ginContextShouldBindBodyWith", 12 "ginContextParam", 13 "ginContextGetQueryMap", 14 "ginContextGetQueryArray", 15 "ginContextGetPostFormMap", 16 "ginContextGetPostFormArray", 17 "httpRequestCookie", 18 } 19 } 20 21 func (g *Gin) HookAll() { 22 Hook(g.GetHook()) 23 } 24 25 func (g *Gin) UnHookAll() { 26 UnHook(g.GetHook()) 27 }