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