Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultEventBus ¶
type DefaultEventBus struct {
debuglog.NodeLogger
ID int
// contains filtered or unexported fields
}
func (*DefaultEventBus) Build ¶
func (e *DefaultEventBus) Build()
Eventbus must be built before events are to be received. This is an commit from programmer, showing that all modules are inited and well-prepared to receive events.
func (*DefaultEventBus) InitDefault ¶
func (e *DefaultEventBus) InitDefault()
func (*DefaultEventBus) ListenTo ¶
func (e *DefaultEventBus) ListenTo(regInfo EventHandlerRegisterInfo)
func (*DefaultEventBus) Route ¶
func (e *DefaultEventBus) Route(ev Event)
type EventHandler ¶
type EventHandlerRegisterInfo ¶
type EventHandlerRegisterInfo struct {
Type EventType
Name string
Handler EventHandler
}
Click to show internal directories.
Click to hide internal directories.