goBlockchainDataAnalysis/mongoModels.go
mongoModels.goRaw
1package main
2
3type TxModel struct {
4 Txid string
5 From string
6 To string
7 Amount float64
8}
9type BlockModel struct {
10 Hash string
11 Height int64
12 Confirmations uint64
13 Amount float64
14 Fee float64
15 Tx []TxModel
16}
17
18type NodeModel struct {
19 Id string `json:"id"`
20 Label string `json:"label"`
21 Title string `json:"title"`
22 Group string `json:"group"`
23 Value int `json:"value"`
24 Shape string `json:"shape"`
25}
26
27type EdgeModel struct {
28 Txid string
29 From string `json:"from"`
30 To string `json:"to"`
31 Label float64 `json:"label"`
32 Arrows string
33}
34type NetworkModel struct {
35 Nodes []NodeModel
36 Edges []EdgeModel
37}