Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus bus for data.Event type
func (*EventBus) PublishBlocking ¶
PublishBlocking publish to bus, but block until all application plugins process the data before publishing more events.
func (*EventBus) Subscribe ¶
func (eb *EventBus) Subscribe(rf EventReceiveFunc)
Subscribe subscribe to bus
type EventPublishFunc ¶
EventPublishFunc function to for publishing to the event bus
type EventReceiveFunc ¶
EventReceiveFunc callback type for receiving events from the event bus
type MetricBus ¶
MetricBus bus for data.Metric type
func (*MetricBus) Publish ¶
func (mb *MetricBus) Publish(name string, time float64, mType data.MetricType, interval time.Duration, value float64, labelKeys []string, labelVals []string)
Publish publish to bus
func (*MetricBus) Subscribe ¶
func (mb *MetricBus) Subscribe(rf MetricReceiveFunc)
Subscribe subscribe to bus
Click to show internal directories.
Click to hide internal directories.