Extend peer metadata with processes

This commit is contained in:
bcmmbaga
2024-03-12 19:23:57 +03:00
parent 9f41a1f20f
commit e66e39cc70

View File

@@ -79,6 +79,11 @@ type Environment struct {
Platform string
}
// Process represents an active process on the peer's system.
type Process struct {
Path string
}
// PeerSystemMeta is a metadata of a Peer machine system
type PeerSystemMeta struct { //nolint:revive
Hostname string
@@ -96,6 +101,7 @@ type PeerSystemMeta struct { //nolint:revive
SystemProductName string
SystemManufacturer string
Environment Environment `gorm:"serializer:json"`
Processes []Process `gorm:"-"`
}
func (p PeerSystemMeta) isEqual(other PeerSystemMeta) bool {