EmitMonitor 发送Monitor事件
(event any)
| 289 | |
| 290 | // EmitMonitor 发送Monitor事件 |
| 291 | func (eb *EventBus) EmitMonitor(event any) types.AgentEventEnvelope { |
| 292 | return eb.emit(types.ChannelMonitor, event) |
| 293 | } |
| 294 | |
| 295 | // Subscribe 订阅指定通道的事件(返回channel) |
| 296 | func (eb *EventBus) Subscribe(channels []types.AgentChannel, opts *types.SubscribeOptions) <-chan types.AgentEventEnvelope { |