feat: add unmarshalling websocket messages

This commit is contained in:
trafficlunar 2024-11-29 15:48:59 +00:00
parent 47b757769a
commit adbf378235
2 changed files with 21 additions and 5 deletions

View file

@ -0,0 +1,6 @@
package model
type ComputerWebsocketMessage struct {
Cpu uint8 `json:"cpu"`
Ram uint8 `json:"ram"`
}