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

     1  package hook
     2  
     3  type Gorilla struct {
     4  }
     5  
     6  func (g *Gorilla) GetHook() []string {
     7  	return []string{
     8  		"gorillaRpcServerHTTP",
     9  	}
    10  }
    11  
    12  func (g *Gorilla) HookAll() {
    13  	Hook(g.GetHook())
    14  }
    15  
    16  func (g *Gorilla) UnHookAll() {
    17  	UnHook(g.GetHook())
    18  }