Documentation ¶
Index ¶
- func CreateEventbus() *eventbus
- func DispatchEvent(event string, args ...interface{})
- func FuzzyDispatchEvent(eventPre string, args ...interface{})
- func FuzzyPublishEvent(eventPre string, args ...interface{})
- func PublishEvent(event string, args ...interface{})
- func RegisterEventListener(event string, listener EventListener) bool
- func RemoveEventListener(event string, listener EventListener)
- type EventListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEventListener ¶
func RegisterEventListener(event string, listener EventListener) bool
func RemoveEventListener ¶
func RemoveEventListener(event string, listener EventListener)
Types ¶
type EventListener ¶
type EventListener func(event string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.