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

Method OnAgentStart

pkg/middleware/stack.go:80–87  ·  view source on GitHub ↗

OnAgentStart 通知所有中间件 Agent 启动

(ctx context.Context, agentID string)

Source from the content-addressed store, hash-verified

78
79// OnAgentStart 通知所有中间件 Agent 启动
80func (s *Stack) OnAgentStart(ctx context.Context, agentID string) error {
81 for _, m := range s.middlewares {
82 if err := m.OnAgentStart(ctx, agentID); err != nil {
83 return err
84 }
85 }
86 return nil
87}
88
89// OnAgentStop 通知所有中间件 Agent 停止
90func (s *Stack) OnAgentStop(ctx context.Context, agentID string) error {

Callers

nothing calls this directly

Calls 1

OnAgentStartMethod · 0.65

Tested by

no test coverage detected