-
Notifications
You must be signed in to change notification settings - Fork 95
/
g_get_node_info.go
34 lines (32 loc) · 1.04 KB
/
g_get_node_info.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package gocks
import (
. "github.com/iotaledger/iota.go/api"
"gopkg.in/h2non/gock.v1"
"strings"
)
func init() {
gock.New(DefaultLocalIRIURI).
Persist().
Post("/").
MatchType("json").
JSON(GetNodeInfoCommand{Command: Command{GetNodeInfoCmd}}).
Reply(200).
JSON(GetNodeInfoResponse{
AppName: "IRI",
AppVersion: "",
Duration: 100,
JREAvailableProcessors: 4,
JREFreeMemory: 13020403,
JREMaxMemory: 1241331231,
JRETotalMemory: 4245234332,
LatestMilestone: strings.Repeat("M", 81),
LatestMilestoneIndex: 1,
LatestSolidSubtangleMilestone: strings.Repeat("M", 81),
LatestSolidSubtangleMilestoneIndex: 1,
Neighbors: 5,
PacketsQueueSize: 23,
Time: 213213214,
Tips: 123,
TransactionsToRequest: 10,
})
}