Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDataStorage ¶
type IDataStorage interface { SetItem(name string, value string, UOM string, dt time.Time, flags string) error TouchItem(name string) error GetItem(name string) (Item, error) GetUnitValues(unitId string) []ItemGetUnitItems RenameItems(oldPrefix string, newPrefix string) RemoveItemsOfUnit(unitName string) error Exec(function string, request []byte, host string) ([]byte, error) StatGazerNode() StatGazerNode StatGazerCloud() StatGazerCloud }
type IUnit ¶
type IUnit interface { Id() string SetId(unitId string) Type() string SetType(unitType string) Name() string SetName(unitType string) SetIUnit(iUnit IUnit) MainItem() string Start(iDataStorage IDataStorage) error Stop() IsStarted() bool SetConfig(config string) GetConfig() string GetConfigMeta() string InternalUnitStart() error InternalUnitStop() }
type Item ¶
type Item struct { Id uint64 `json:"id"` UnitId string `json:"unit_id"` Name string `json:"name"` Value ItemValue `json:"value"` PostprocessingTrim bool `json:"postprocessing_trim"` PostprocessingAdjust bool `json:"postprocessing_adjust"` PostprocessingScale float64 `json:"postprocessing_scale"` PostprocessingOffset float64 `json:"postprocessing_offset"` PostprocessingPrecision int `json:"postprocessing_precision"` }
func (*Item) PostprocessingValue ¶ added in v1.0.6
type ItemConfiguration ¶
type ItemGetUnitItems ¶
type ResourcesInfo ¶
type ResourcesInfo struct { TotalCount int `json:"total_count"` InFilterCount int `json:"in_filter_count"` Items []ResourcesItemInfo `json:"items"` }
type ResourcesItem ¶
type ResourcesItem struct { Info ResourcesItemInfo `json:"info"` Content []byte `json:"content"` }
type ResourcesItemInfo ¶
type StatGazerCloud ¶ added in v1.0.6
type StatGazerNode ¶ added in v1.0.6
type StatGazerNode struct { }
type Statistics ¶
Click to show internal directories.
Click to hide internal directories.