Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerIDList ¶
type HandlerIDList []HandlerID
func (HandlerIDList) Len ¶
func (list HandlerIDList) Len() int
func (HandlerIDList) Less ¶
func (list HandlerIDList) Less(i, j int) bool
func (HandlerIDList) Swap ¶
func (list HandlerIDList) Swap(i, j int)
type IListener ¶
type IListener interface {
// Register registers an event handler
Register(Type, Handler) HandlerID
// Unregister deletes the event handler with the specified ID
Unregister(HandlerID) error
// Fire starts event processing
Fire(IEvent) error
}
IListener Event Listener Interface
The implementation of asynchronous event processing is assigned to the author of the event handler. For example, a handler can simply send an event to a channel that is being listened to by one or more goroutines performing valid event processing.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (*Listener) Unregister ¶
Click to show internal directories.
Click to hide internal directories.