telemetry service and telemetry agents interface
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package telemetry
|
||||
|
||||
type TelemetryField struct {
|
||||
Parser func()
|
||||
Value any
|
||||
}
|
||||
|
||||
// NOTE: Replace values with a more appropriate custom field approach where
|
||||
// every custom field only takes as many bytes as required
|
||||
// NOTE: Add the timing fields here to count frames of data gathering and whatnot
|
||||
// remember to do the same to whoever is sending data
|
||||
|
||||
type TelemetryData struct {
|
||||
// Values map[string]*TelemetryField
|
||||
Values map[string][32]byte
|
||||
}
|
||||
|
||||
func NewTelemetryData() *TelemetryData {
|
||||
return &TelemetryData{
|
||||
Values: make(map[string][32]byte),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user