Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMetricsEventHandler ¶
func AddMetricsEventHandler(handler MessageHandler)
func InitMetricHandlers ¶
func RemoveMetricsEventHandler ¶
func RemoveMetricsEventHandler(handler MessageHandler)
Types ¶
type MessageHandler ¶
type MessageHandler interface { // AcceptMetrics is called when new metrics become available AcceptMetrics(message *metrics_pb.MetricsMessage) }
MessageHandler represents a sink for metric events
func NewChannelReporter ¶
func NewChannelReporter(ch channel.Channel) MessageHandler
NewChannelReporter creates a metrics handler which sends metrics messages out on the given channel
func NewDispatchWrapper ¶
func NewDispatchWrapper(delegate func(event event.Event)) MessageHandler
Click to show internal directories.
Click to hide internal directories.