Enable serialization of events
This commit is contained in:
14
types.go
14
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 {
|
||||
|
Reference in New Issue
Block a user