Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (31 sloc) 963 Bytes
syntax = "proto3";
package nexus;
service Service {
rpc Ping(Empty) returns (Empty) {};
rpc StartNetwork(NetworkRequest) returns (StartNetworkResponse) {};
rpc UpdateNetwork(NetworkRequest) returns (Empty) {};
rpc StopNetwork(NetworkRequest) returns (Empty) {};
rpc RemoveNetwork(NetworkRequest) returns (Empty) {};
rpc NetworkStats(NetworkRequest) returns (NetworkStatusReponse) {};
rpc NetworkDiagnostics(NetworkRequest) returns (NetworkDiagnosticsResponse) {};
}
message Empty {}
message NetworkRequest {
string network = 1;
}
message StartNetworkResponse {
string peer_id = 1;
string swarm_port = 2;
string swarm_key = 3;
}
message NetworkStatusReponse {
string network = 1;
string peer_id = 2;
string swarm_port = 3;
int64 uptime = 4;
int64 disk_usage = 5;
}
message NetworkDiagnosticsResponse {
bytes node_info = 1;
bytes stats = 2;
}
You can’t perform that action at this time.