some refinement
This commit is contained in:
1 parent
89e1db8edf
commit
0ed1cb4355
14 files changed
+390
-104
No files matched your search
@@ -27,15 +27,15 @@ type HistoryProvider interface {
|
||||
|
||||
// HistoryEntry represents a single archived telemetry entry.
|
||||
type HistoryEntry struct {
|
||||
Type string `json:"type"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
Data interface{} `json:"data"`
|
||||
Type string `json:"type"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
Data json.RawMessage `json:"data"`
|
||||
}
|
||||
|
||||
// Entry represents a telemetry update sent to clients.
|
||||
type Entry struct {
|
||||
Type string `json:"type"`
|
||||
Data interface{} `json:"data"`
|
||||
Type string `json:"type"`
|
||||
Data json.RawMessage `json:"data"`
|
||||
}
|
||||
|
||||
// Broadcaster interface for sending telemetry updates to all connected clients.
|
||||
|
||||
Reference in new issue
Block a user