Documentation ¶
Index ¶
- type Event
- type EventDispatcher
- func (ed *EventDispatcher) Clear()
- func (ed *EventDispatcher) Dispatch(event Event)
- func (ed *EventDispatcher) Has(name string, handler EventHandler) bool
- func (ed *EventDispatcher) Register(name string, handler EventHandler) error
- func (ed *EventDispatcher) Remove(name string, handler EventHandler)
- type EventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDispatcher ¶
type EventDispatcher struct {
// contains filtered or unexported fields
}
func NewEventDispatcher ¶
func NewEventDispatcher() *EventDispatcher
func (*EventDispatcher) Clear ¶
func (ed *EventDispatcher) Clear()
func (*EventDispatcher) Dispatch ¶
func (ed *EventDispatcher) Dispatch(event Event)
func (*EventDispatcher) Has ¶
func (ed *EventDispatcher) Has(name string, handler EventHandler) bool
func (*EventDispatcher) Register ¶
func (ed *EventDispatcher) Register(name string, handler EventHandler) error
func (*EventDispatcher) Remove ¶
func (ed *EventDispatcher) Remove(name string, handler EventHandler)
type EventHandler ¶
Click to show internal directories.
Click to hide internal directories.