Documentation ¶
Index ¶
- func GenEventID() eventID
- type Event
- type EventEmitter
- type EventEmitterImpl
- func (m *EventEmitterImpl) AddEvent(eventID eventID, f eventFunc)
- func (m *EventEmitterImpl) Close()
- func (m *EventEmitterImpl) EmitEvent(eventID eventID, data interface{}) error
- func (m *EventEmitterImpl) Remove(eventID eventID)
- func (m *EventEmitterImpl) SyncEmitEvent(eventID eventID, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenEventID ¶
func GenEventID() eventID
Types ¶
type EventEmitter ¶
type EventEmitter interface { AddEvent(eventID eventID, f eventFunc) EmitEvent(eventID eventID, data interface{}) error }
func NewEventEmitter ¶
type EventEmitterImpl ¶
type EventEmitterImpl struct {
// contains filtered or unexported fields
}
func (*EventEmitterImpl) AddEvent ¶
func (m *EventEmitterImpl) AddEvent(eventID eventID, f eventFunc)
func (*EventEmitterImpl) Close ¶
func (m *EventEmitterImpl) Close()
func (*EventEmitterImpl) EmitEvent ¶
func (m *EventEmitterImpl) EmitEvent(eventID eventID, data interface{}) error
func (*EventEmitterImpl) Remove ¶
func (m *EventEmitterImpl) Remove(eventID eventID)
func (*EventEmitterImpl) SyncEmitEvent ¶
func (m *EventEmitterImpl) SyncEmitEvent(eventID eventID, data interface{}) error
Click to show internal directories.
Click to hide internal directories.