MCPcopy
hub / github.com/eolinker/goku_lite / accessFlow

Method accessFlow

node/gateway/api.go:51–63  ·  view source on GitHub ↗
(ctx *common.Context)

Source from the content-addressed store, hash-verified

49}
50
51func (h *API) accessFlow(ctx *common.Context) bool {
52 for _, handler := range h.pluginAccess {
53 flag, err := handler.Execute(ctx)
54 if err != nil {
55 fmt.Println(err)
56 }
57 if flag == false && handler.IsStop() {
58
59 return false
60 }
61 }
62 return true
63}
64
65func (h *API) accessGlobalFlow(ctx *common.Context) {
66 // 全局插件不中断

Callers 1

RouterMethod · 0.95

Calls 2

ExecuteMethod · 0.65
IsStopMethod · 0.65

Tested by

no test coverage detected