measurement

package
v0.0.0-...-56bef0c Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinePhases

func CombinePhases(g [3]func() (float64, error)) func() (float64, float64, float64, error)

CombinePhases combines phase getters into combined api function

Types

type Energy

type Energy struct {
	Power  plugin.Config
	Energy *plugin.Config // optional
}

func (*Energy) Configure

func (cc *Energy) Configure(ctx context.Context) (
	func() (float64, error),
	func() (float64, error),
	error,
)

type Phases

type Phases struct {
	Currents, Voltages, Powers []plugin.Config // optional
}

func (*Phases) Configure

func (cc *Phases) Configure(ctx context.Context) (
	func() (float64, float64, float64, error),
	func() (float64, float64, float64, error),
	func() (float64, float64, float64, error),
	error,
)

Jump to

Keyboard shortcuts

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