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	From   string
29	To     string
30	Label  string
31	Arrows string
32}