telemetry service and telemetry agents interface

This commit is contained in:
2026-03-05 16:26:30 +00:00
parent c9086cae56
commit e65358ea1d
16 changed files with 388 additions and 314 deletions
+22
View File
@@ -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),
}
}
+6
View File
@@ -0,0 +1,6 @@
// Package telemetry is our interface with our data sources
package telemetry
type TelemetryProvider interface {
Stream() (<-chan TelemetryData, error)
}