MCPcopy Create free account
hub / github.com/astercloud/aster / OnWorkflowRegistered

Method OnWorkflowRegistered

pkg/asteros/interfaces/http.go:92–98  ·  view source on GitHub ↗

OnWorkflowRegistered Workflow 注册事件

(wf workflow.Agent)

Source from the content-addressed store, hash-verified

90
91// OnWorkflowRegistered Workflow 注册事件
92func (i *HTTPInterface) OnWorkflowRegistered(wf workflow.Agent) error {
93 if i.opts.EnableLogging {
94 fmt.Printf(" [HTTP] Workflow registered: %s\n", wf.Name())
95 fmt.Printf(" → API: POST /workflows/%s/execute\n", wf.Name())
96 }
97 return nil
98}

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.80
NameMethod · 0.65

Tested by

no test coverage detected