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

     1  package httpRouter
     2  
     3  import (
     4  	_ "github.com/HXSecurity/DongTai-agent-go/core/http/httpRequestCookie"
     5  	_ "github.com/HXSecurity/DongTai-agent-go/core/http/httpRequestFormValue"
     6  	_ "github.com/HXSecurity/DongTai-agent-go/core/http/urlURLQuery"
     7  	_ "github.com/HXSecurity/DongTai-agent-go/core/httpRouter/httpRouter"
     8  	"github.com/HXSecurity/DongTai-agent-go/global"
     9  	"github.com/HXSecurity/DongTai-agent-go/hook"
    10  )
    11  
    12  func init() {
    13  	h := new(hook.HttpRouter)
    14  	global.AllHooks = append(global.AllHooks, h)
    15  	h.HookAll()
    16  }