Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
Bus存储event消息channel及其handler Events map{eventName: eventInfo}
var UBus *Bus
func (*Bus) RegisterHandler ¶
func (b *Bus) RegisterHandler(event string, handlerfunc HandlerFunc) error
type EventInfo ¶
type EventInfo struct { EventMsg DataChannel HandlerFunc HandlerFunc }
EventMsg save event message
type HandlerFunc ¶
HandlerFunc defines a handler function interface.
Click to show internal directories.
Click to hide internal directories.