Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Queue = NewEventQueue()
Functions ¶
This section is empty.
Types ¶
type EventQueue ¶
func NewEventQueue ¶
func NewEventQueue() *EventQueue
func (*EventQueue) Notify ¶
func (eq *EventQueue) Notify(eventType EventType, value interface{})
Notify subscribers that Subscribe specified event
func (*EventQueue) Subscribe ¶
func (eq *EventQueue) Subscribe(eventType EventType, eventFunc EventFunc) int
Subscribe adds a new subscriber to Event.
func (*EventQueue) Unsubscribe ¶
func (eq *EventQueue) Unsubscribe(eventType EventType, subscriberIdx int) error
Unsubscribe removes the specified subscriber
Click to show internal directories.
Click to hide internal directories.