Skip to content

Instantly share code, notes, and snippets.

@maxsei
Created May 22, 2024 19:31
Show Gist options
  • Save maxsei/d348354bd3a74ac775012ed8df65532d to your computer and use it in GitHub Desktop.
Save maxsei/d348354bd3a74ac775012ed8df65532d to your computer and use it in GitHub Desktop.
service types
package main
import (
"time"
"github.com/google/uuid"
)
type (
SystemDeviceInfo struct {
SerialNumber string
Path string
}
MessageIdentifyDevice struct {
SerialNumber string
Name string
Baud int32
}
UserDeviceInfo struct {
Device uuid.UUID
Name string
Baud int32
ParameterCount int32
}
DeviceInfo struct {
SystemDeviceInfo
UserDeviceInfo
}
DeviceMetric struct {
Device uuid.UUID
Timestamp time.Time
Values []float64
}
)
func main() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment