arnaucube
arnaucube/goBlockchainDataAnalysisPublic Self-hosted repository
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
20	Label string
21	Title string
22	Group string
23	Value int
24	Shape string
25}
26
27type EdgeModel struct {
28	Txid   string
29	From   string
30	To     string
31	Label  float64
32	Arrows string
33}
34type NetworkModel struct {
35	Nodes []NodeModel
36	Edges []EdgeModel
37}