MCPcopy
hub / github.com/ConnectAI-E/feishu-openai / chain

Function chain

code/handlers/handler.go:19–26  ·  view source on GitHub ↗

责任链

(data *ActionInfo, actions ...Action)

Source from the content-addressed store, hash-verified

17
18// 责任链
19func chain(data *ActionInfo, actions ...Action) bool {
20 for _, v := range actions {
21 if !v.Execute(data) {
22 return false
23 }
24 }
25 return true
26}
27
28type MessageHandler struct {
29 sessionCache services.SessionServiceCacheInterface

Callers 1

msgReceivedHandlerMethod · 0.85

Calls 1

ExecuteMethod · 0.65

Tested by

no test coverage detected