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

Method EmitProgress

pkg/events/bus.go:281–283  ·  view source on GitHub ↗

EmitProgress 发送Progress事件

(event any)

Source from the content-addressed store, hash-verified

279
280// EmitProgress 发送Progress事件
281func (eb *EventBus) EmitProgress(event any) types.AgentEventEnvelope {
282 return eb.emit(types.ChannelProgress, event)
283}
284
285// EmitControl 发送Control事件
286func (eb *EventBus) EmitControl(event any) types.AgentEventEnvelope {

Callers 15

TestEmitAndSubscribeFunction · 0.95
TestGetTimelineRangeFunction · 0.95
TestGetTimelineSinceFunction · 0.95
TestGetTimelineFilteredFunction · 0.95
TestGetTimelineCountFunction · 0.95
mainFunction · 0.95
TestCleanupBySizeFunction · 0.80
TestCleanupByAgeFunction · 0.80
TestAutoCleanupWorkerFunction · 0.80
TestMemoryStabilityFunction · 0.80
PushEventMethod · 0.80
processMessagesMethod · 0.80

Calls 1

emitMethod · 0.95

Tested by 9

TestEmitAndSubscribeFunction · 0.76
TestGetTimelineRangeFunction · 0.76
TestGetTimelineSinceFunction · 0.76
TestGetTimelineFilteredFunction · 0.76
TestGetTimelineCountFunction · 0.76
TestCleanupBySizeFunction · 0.64
TestCleanupByAgeFunction · 0.64
TestAutoCleanupWorkerFunction · 0.64
TestMemoryStabilityFunction · 0.64