parameterstore

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParameterStore

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

func New

func New() *ParameterStore

New creates a new parameter value store

func (*ParameterStore) Add

func (ps *ParameterStore) Add(name string, unit parameterunit.ParameterUnit, logFormatString string)

Add adds a new parameter with given attributes to the store

func (*ParameterStore) FormatLog

func (ps *ParameterStore) FormatLog() (headline string, value string)

FormatLog format all entries of parameter store to a list with a headline with separator semicolon, so it can be used to write a file in csv format.

func (*ParameterStore) Get

Get gets the current value for the given parameter with unit

func (*ParameterStore) Set

func (ps *ParameterStore) Set(name string, unit parameterunit.ParameterUnit, value float64) error

Set sets a new value for the given parameter with unit

Jump to

Keyboard shortcuts

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