This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63fc8b4
commit 419c404
Showing
4 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package server | ||
|
||
type Counters struct { | ||
Pending int `json:"pending"` | ||
Verified int `json:"verified"` | ||
} | ||
|
||
type BlockCounts struct { | ||
Local uint64 `json:"local"` | ||
Remote uint64 `json:"remote"` | ||
} | ||
|
||
type DetailReply struct { | ||
Chain string `json:"chain"` | ||
Mode string `json:"mode"` | ||
Blocks BlockCounts `json:"blocks"` | ||
RPCs uint64 `json:"rpcs"` | ||
Peers BlockCounts `json:"peers"` | ||
TransactionCounters Counters `json:"transactionCounters"` | ||
Difficulty float64 `json:"difficulty"` | ||
Version string `json:"version"` | ||
Uptime string `json:"uptime"` | ||
PublicKey string `json:"publicKey"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters