You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
735 B

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