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 +}