github.com/HXSecurity/DongTai-agent-go@v0.4.2/hook/goChi.go (about)

     1  package hook
     2  
     3  type ChiRouter struct {
     4  }
     5  
     6  func (h *ChiRouter) GetHook() []string {
     7  	return []string{
     8  		"chiRouter",
     9  		"httpRequestFormValue",
    10  		"httpRequestCookie",
    11  		"urlURLQuery",
    12  	}
    13  }
    14  
    15  func (h *ChiRouter) HookAll() {
    16  	Hook(h.GetHook())
    17  }
    18  
    19  func (h *ChiRouter) UnHookAll() {
    20  	UnHook(h.GetHook())
    21  }