parameterstatus

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(
	getParameterValue func(name string, unit parameterunit.ParameterUnit) float64,
	sendTimeFormat string,
) *Store

NewStore creates a new parameter status store

func (*Store) Add

func (pss *Store) Add(name string, unit parameterunit.ParameterUnit, logFormat string)

Add adds a new parameter with given attributes to the store

func (*Store) Send

func (pss *Store) Send(sendStatistic func(string, string) error) error

Send formats all status information and send with the given function

func (*Store) Update

func (pss *Store) Update()

Update updates the all parameters in store with the current value and updates minimum and maximum

Jump to

Keyboard shortcuts

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