calculator

package
v0.0.1-alpha.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalculatorHandler

type CalculatorHandler struct {
	Bus *bus.Bus
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL