package
0.0.0-20210627221658-07365c2edb0d
Repository: https://github.com/timoth-y/chainmetric-core.git
Documentation: pkg.go.dev
# Constants
DeviceCmdCompleted defines "completed" status of DeviceCommand execution.
DeviceCmdFailed defines "failed" status of DeviceCommand execution.
DeviceCmdProcessing defines "processing" status of DeviceCommand execution.
DevicePairingCmd defines DeviceCommand to pair Device via Bluetooth.
DevicePauseCmd defines DeviceCommand to "pause" Device.
DeviceResumeCmd defines DeviceCommand to "pause" Device.
# Variables
DeviceOffline defines Device "offline" state.
DeviceOnline defines Device "online" state.
DevicePaused defines Device "paused" state.
# Structs
Asset defines asset data models.
Device defines device data models.
DeviceBattery defines Device battery and power state.
DeviceCommandLogEntry defines DeviceCommand execution historical log record.
Location defines the geospatial location data model.
MetricReadings defines data models for readings from sensors.
Requirement defines per metric requirement properties limits.
Requirements defines requirements data models.
# Type aliases
DeviceCommand defines Device commands enum.
DeviceCommandStatus defines DeviceCommand execution status.
DeviceState defines Device states enum.
Metric represents tracking properties considered by the asset holder.
Metrics represents slice of Metric properties.
RequirementsMap represents map with Metric key and corresponding Requirement value.