mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: add unmarshalling websocket messages
This commit is contained in:
parent
47b757769a
commit
adbf378235
2 changed files with 21 additions and 5 deletions
6
internal/model/computer.go
Normal file
6
internal/model/computer.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package model
|
||||
|
||||
type ComputerWebsocketMessage struct {
|
||||
Cpu uint8 `json:"cpu"`
|
||||
Ram uint8 `json:"ram"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue