From e94f9750e5cb85c1aca52761984e93a05324e5f9 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 26 Sep 2025 09:14:17 +0200 Subject: [PATCH] Add basic types --- types.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 types.go diff --git a/types.go b/types.go new file mode 100644 index 0000000..2d4d70e --- /dev/null +++ b/types.go @@ -0,0 +1,21 @@ +package main + +import "time" + +type Event struct { + Seq int + Type string + Hash string + ItemID string + EventID string + Data map[string]interface{} + Timestamp time.Time +} + +type SLItem struct { + ID string + Content string + CreatedAt time.Time + UpdatedAt time.Time + DeletedAt time.Time +}