[用户节点]可以管理用户节点

This commit is contained in:
GoEdgeLab
2020-12-14 21:24:21 +08:00
parent 60c160e4c5
commit be063f9533
39 changed files with 1205 additions and 19 deletions

View File

@@ -0,0 +1,21 @@
package node
import (
"github.com/iwind/TeaGo/actions"
"net/http"
)
type Helper struct {
}
func NewHelper() *Helper {
return &Helper{}
}
func (this *Helper) BeforeAction(action *actions.ActionObject) (goNext bool) {
if action.Request.Method != http.MethodGet {
return true
}
return true
}