-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.go
More file actions
28 lines (24 loc) · 837 Bytes
/
Copy pathstate.go
File metadata and controls
28 lines (24 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package sdk
// DeviceState describes the lifecycle state of an external device the adapter
// is collecting from. The underlying NATS connection state is independent.
type DeviceState string
const (
DeviceDisconnected DeviceState = "disconnected"
DeviceConnecting DeviceState = "connecting"
DeviceConnected DeviceState = "connected"
DeviceReconnecting DeviceState = "reconnecting"
DeviceError DeviceState = "error"
)
// Quality values for TagValue.Quality. EDG Core accepts free-form strings; the
// constants below match the tokens used by the Python SDK and the reference
// adapters.
const (
QualityGood = "GOOD"
QualityBad = "BAD"
QualityUncertain = "UNCERTAIN"
)
// Source values for asset registration. Matches internal/core/metadata.go.
const (
SourceManual = "manual"
SourceAuto = "auto"
)