Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataChannel ¶
type DataChannel chan DataEvent
DataChannel is a channel which can accept an DataEvent
type DataChannelSlice ¶
type DataChannelSlice []DataChannel
DataChannelSlice is a slice of DataChannels
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus stores the information about subscribers interested for // a particular topic
func NewMicrobus ¶
func NewMicrobus() *EventBus
func (*EventBus) Subscribe ¶
func (eb *EventBus) Subscribe(topic string, ch DataChannel)
Click to show internal directories.
Click to hide internal directories.