controlprogram

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

type Program struct {
	ID         string
	Name       string
	TargetIDs  []string
	CycleCount int
	Steps      []Step
	Metadata   map[string]string
}

func (Program) CloneForTargets

func (p Program) CloneForTargets(targetIDs []string) Program

func (Program) TargetCount

func (p Program) TargetCount() int

func (Program) TotalDuration

func (p Program) TotalDuration() time.Duration

func (Program) Validate

func (p Program) Validate() error

type Setpoint

type Setpoint struct {
	Channel  string
	Value    float64
	Unit     string
	Metadata map[string]string
}

type Step

type Step struct {
	ID        string
	Hold      time.Duration
	Setpoints []Setpoint
	Metadata  map[string]string
}

Jump to

Keyboard shortcuts

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