Enable serialization of events

This commit is contained in:
2025-09-26 09:23:40 +02:00
parent db6f63f096
commit df397f5f1d

View File

@@ -3,13 +3,13 @@ package main
import "time" import "time"
type Event struct { type Event struct {
Seq int Seq int `json:"seq"`
Type string Type string `json:"type"`
Hash string Hash string `json:"hash"`
ItemID string ItemID string `json:"item_id"`
EventID string EventID string `json:"event_id"`
Data map[string]interface{} Data map[string]interface{} `json:"data"`
Timestamp time.Time Timestamp time.Time `json:"timestamp"`
} }
type SLItem struct { type SLItem struct {