api

package
v0.0.0-...-339fc89 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Location      string         `yaml:"location"`
	SampleConfigs []ConfigSample `yaml:"sampleConfigs"`
}

type ConfigSample

type ConfigSample struct {
	// default jarvis config for sample
	EntityType contractsv1.EntityType `yaml:"entityType"`
	EntityName string                 `yaml:"entityName"`
	SampleType contractsv1.SampleType `yaml:"sampleType"`
	SampleName string                 `yaml:"sampleName"`
	MetricType contractsv1.MetricType `yaml:"metricType"`

	// modbus specific config for sample
	ValueMultiplier  float64      `yaml:"valueMultiplier"`
	RegisterType     RegisterType `yaml:"registerType"`
	RegisterAddress  uint16       `yaml:"registerAddress"`
	RegisterQuantity uint16       `yaml:"registerQuantity"`
}

type RegisterType

type RegisterType string
const (
	RegisterTypeInput    RegisterType = "input"
	RegisterTypeHolding  RegisterType = "holding"
	RegisterTypeDiscrete RegisterType = "discrete"
	RegisterTypeCoil     RegisterType = "coil"
)

Jump to

Keyboard shortcuts

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