-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreq_resp_types.proto
87 lines (67 loc) · 1.94 KB
/
req_resp_types.proto
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Copyright 2024 MaidSafe.net limited.
//
// This SAFE Network Software is licensed to you under The General Public License (GPL), version 3.
// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. Please review the Licences for the specific language governing
// permissions and limitations relating to use of the SAFE Network Software.
// Version of protocol buffer used
syntax = "proto3";
// Package name
package safenode_proto;
// Basic info about the node and safenode app
message NodeInfoRequest {}
message NodeInfoResponse {
bytes peer_id = 1;
uint32 pid = 2;
string log_dir = 3;
string bin_version = 4;
uint64 uptime_secs = 5;
string data_dir = 6;
uint64 wallet_balance = 7;
}
// Information about how this node's connections to the network and peers
message NetworkInfoRequest {}
message NetworkInfoResponse {
repeated bytes connected_peers = 1;
repeated string listeners = 2;
}
// Stream of node events
message NodeEventsRequest {}
message NodeEvent {
bytes event = 1;
}
// Addresses of all the Records stored by the node
message RecordAddressesRequest {}
message RecordAddressesResponse {
repeated bytes addresses = 1;
}
// KBuckets of this node
message KBucketsRequest {}
message KBucketsResponse {
message Peers {
repeated bytes peers = 1;
}
map<uint32, Peers> kbuckets = 1;
}
// Stop the safenode app
message StopRequest {
uint64 delay_millis = 1;
}
message StopResponse {}
// Restart the safenode app
message RestartRequest {
uint64 delay_millis = 1;
bool retain_peer_id = 2;
}
message RestartResponse {}
// Update the safenode app
message UpdateRequest {
uint64 delay_millis = 1;
}
message UpdateResponse {}
// Set the node's log level
message UpdateLogLevelRequest {
string log_level = 1;
}
message UpdateLogLevelResponse{}