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

Function NewEventBus

pkg/events/bus.go:61–63  ·  view source on GitHub ↗

NewEventBus 创建新的事件总线(使用默认配置)

()

Source from the content-addressed store, hash-verified

59
60// NewEventBus 创建新的事件总线(使用默认配置)
61func NewEventBus() *EventBus {
62 return NewEventBusWithConfig(DefaultEventBusConfig())
63}
64
65// NewEventBusWithConfig 创建带配置的事件总线
66func NewEventBusWithConfig(config *EventBusConfig) *EventBus {

Callers 12

NewRemoteAgentFunction · 0.92
CreateFunction · 0.92
mainFunction · 0.92
TestNewEventBusFunction · 0.85
TestEmitAndSubscribeFunction · 0.85
TestUnsubscribeFunction · 0.85
TestCloseFunction · 0.85
TestGetTimelineRangeFunction · 0.85
TestGetTimelineSinceFunction · 0.85
TestGetTimelineFilteredFunction · 0.85
TestGetTimelineCountFunction · 0.85

Calls 2

NewEventBusWithConfigFunction · 0.85
DefaultEventBusConfigFunction · 0.85

Tested by 9

TestNewEventBusFunction · 0.68
TestEmitAndSubscribeFunction · 0.68
TestUnsubscribeFunction · 0.68
TestCloseFunction · 0.68
TestGetTimelineRangeFunction · 0.68
TestGetTimelineSinceFunction · 0.68
TestGetTimelineFilteredFunction · 0.68
TestGetTimelineCountFunction · 0.68