fix: heartbeat system_data als RawMessage — Windows/beliebige Plattformen ohne Datenverlust

This commit is contained in:
cynfo3000
2026-03-10 01:49:24 +01:00
parent f7bbe3e4b1
commit 2fe83e261a
3 changed files with 53 additions and 5 deletions
+6 -4
View File
@@ -1,5 +1,7 @@
package models
import "encoding/json"
// SystemData - Alle Systemdaten die der Agent sendet
type SystemData struct {
AgentID string `json:"agent_id"`
@@ -291,10 +293,10 @@ type CaddyData struct {
// HeartbeatRequest
type HeartbeatRequest struct {
AgentID string `json:"agent_id"`
AgentVersion string `json:"agent_version,omitempty"`
Platform string `json:"platform,omitempty"`
SystemData SystemData `json:"system_data"`
AgentID string `json:"agent_id"`
AgentVersion string `json:"agent_version,omitempty"`
Platform string `json:"platform,omitempty"`
SystemData json.RawMessage `json:"system_data"`
}
// HeartbeatResponse