github.com/HXSecurity/DongTai-agent-go@v0.4.2/run/gin/hookGin.go (about)

     1  package gin
     2  
     3  import (
     4  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextGetPostFormArray"
     5  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextGetPostFormMap"
     6  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextGetQueryArray"
     7  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextGetQueryMap"
     8  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextParam"
     9  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextShouldBindBodyWith"
    10  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextShouldBindUri"
    11  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginContextShouldBindWith"
    12  	_ "github.com/HXSecurity/DongTai-agent-go/core/gin/ginEngineServerHTTP"
    13  	_ "github.com/HXSecurity/DongTai-agent-go/core/http/httpRequestCookie"
    14  	"github.com/HXSecurity/DongTai-agent-go/global"
    15  	"github.com/HXSecurity/DongTai-agent-go/hook"
    16  )
    17  
    18  func init() {
    19  	g := new(hook.Gin)
    20  	global.AllHooks = append(global.AllHooks, g)
    21  	g.HookAll()
    22  }