Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalSyncEvent ¶
func GlobalSyncEvent(param interface{})
func PublishSyncEvent ¶ added in v0.0.3
func RegisterSyncEvent ¶
Register the events, providing the event name and the callback function
Types ¶
type AsyncEvent ¶ added in v0.0.4
type DataChannel ¶
type DataChannel chan DataEvent
type DatachannelSlice ¶
type DatachannelSlice []DataChannel
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func (*EventBus) PublishAsyncEvent ¶
func (*EventBus) SubscribeAsyncEvent ¶
func (eb *EventBus) SubscribeAsyncEvent(topic string, ch DataChannel)
type EventFuncs ¶
type EventFuncs struct { }
func (*EventFuncs) NewAsyncEvent ¶
func (e *EventFuncs) NewAsyncEvent(topic string)
func (*EventFuncs) PrintDataAsyncEvent ¶
func (e *EventFuncs) PrintDataAsyncEvent(topic string, data DataEvent)
func (*EventFuncs) PublishAsyncEvent ¶
func (e *EventFuncs) PublishAsyncEvent(topic string, message interface{})
func (*EventFuncs) RegisterAsyncEvent ¶
func (e *EventFuncs) RegisterAsyncEvent(topic string, chanEvent chan DataEvent)
Click to show internal directories.
Click to hide internal directories.