From df397f5f1dbc1b26a3895b9d10933bf0cac2d5e1 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 26 Sep 2025 09:23:40 +0200 Subject: [PATCH] Enable serialization of events --- types.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types.go b/types.go index 2d4d70e..565aa6a 100644 --- a/types.go +++ b/types.go @@ -3,13 +3,13 @@ package main import "time" type Event struct { - Seq int - Type string - Hash string - ItemID string - EventID string - Data map[string]interface{} - Timestamp time.Time + Seq int `json:"seq"` + Type string `json:"type"` + Hash string `json:"hash"` + ItemID string `json:"item_id"` + EventID string `json:"event_id"` + Data map[string]interface{} `json:"data"` + Timestamp time.Time `json:"timestamp"` } type SLItem struct {