Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventManager ¶
type EventManager struct {
// contains filtered or unexported fields
}
EventManager 事件管理器
func NewEventManager ¶
func NewEventManager( eventBus bus.EventBus, handlers ...bus.EventHandler, ) *EventManager
NewEventManager 接受任意数量的 EventHandler 接口
func (*EventManager) EventBus ¶
func (em *EventManager) EventBus() bus.EventBus
func (*EventManager) Register ¶
func (em *EventManager) Register(handler bus.EventHandler)
Click to show internal directories.
Click to hide internal directories.