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" )
Click to show internal directories.
Click to hide internal directories.