refactor(go): keep protocol realtime snapshots lightweight
This commit is contained in:
@@ -21,6 +21,11 @@ type Snapshot struct {
|
||||
UpdatedAtMS int64 `json:"updated_at_ms"`
|
||||
}
|
||||
|
||||
func (s Snapshot) Lightweight() Snapshot {
|
||||
s.Parsed = nil
|
||||
return s
|
||||
}
|
||||
|
||||
type OnlineStatus struct {
|
||||
VehicleKey string `json:"vehicle_key"`
|
||||
VIN string `json:"vin"`
|
||||
|
||||
Reference in New Issue
Block a user