Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MaxEventNum is the default size of a event queue.
MaxEventNum = 200
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus interface {
Watch(event string, callback Callback)
Unwatch(event string, callback Callback)
Dispatch(event *Event)
DispatchAndWait(event *Event)
}
Bus implements the observer pattern to allow event dispatching and watching.
Click to show internal directories.
Click to hide internal directories.