Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculatorHandler ¶
CalculatorHandler is used to handle events when metrics have been collected
func NewHandler ¶
func NewHandler(ctx context.Context, b *bus.Bus) *CalculatorHandler
NewHandler returns a new configuered instance of CalculatorHandler as well as setups the factor datasets
func (*CalculatorHandler) Handle ¶
func (c *CalculatorHandler) Handle(ctx context.Context, e *bus.Event)
Handle is used to fulfill the EventHandler interface and recives an event when handler is subscribed to it. Currently only handles v1.MetricsCollectedEvent
func (*CalculatorHandler) Stop ¶
func (c *CalculatorHandler) Stop(ctx context.Context)
Stop is used to fulfill the EventHandler interface and all clean up functionality should be run in here
Click to show internal directories.
Click to hide internal directories.