/
event.go
52 lines (51 loc) · 1.26 KB
/
event.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package define
//
//type Event struct {
// Payload interface{} `json:"payload"`
//}
//
//type Header struct {
// ContentDef ContentDef `json:"contentDef"`
// Ack Ack `json:"ack"`
// ResponseStatus ResponseStatus `json:"responseStatus"`
//}
//
//type ContentDef struct {
// ContentType string `json:"contentType"`
// TrackId string `json:"trackId"`
// Language string `json:"language"`
//}
//
//type Ack struct {
// Level string `json:"level"`
// Callback string `json:"callback"`
//}
//
//type Contents struct {
// Schema string `json:"$schema"`
// Payload interface{} `json:"payload"`
// Command Command `json:"command, omitempty"`
//}
//
//type Command struct {
// Uri string `json:"uri, omitempty"`
// Action string `json:"action, omitempty"`
// Desc string `json:"desc, omitempty"`
//}
//
//type ResponseData struct {
// TrackId string `json:"trackId"`
// ResponseStatus ResponseStatus `json:"responseStatus"`
// Page Page `json:"page"`
// Payload interface{} `json:"payload"`
//}
//
//type BlockInfo struct {
// BlockNumber uint64 `json:"block_number"`
// TxIndex int `json:"tx_index"`
//}
//
//type BlockInfoAll struct {
// BlockInfo
// MsgInfo interface{} `json:"msgInfo"`
//}