added grpc for a node command and fixed grpc unit tests

This commit is contained in:
Blake Harnden 2019-05-31 11:46:47 -07:00
parent e063fcd4fe
commit 1890db5991
5 changed files with 52 additions and 2 deletions

View file

@ -39,6 +39,8 @@ service CoreApi {
}
rpc DeleteNode (DeleteNodeRequest) returns (DeleteNodeResponse) {
}
rpc NodeCommand (NodeCommandRequest) returns (NodeCommandResponse) {
}
// link rpc
rpc GetNodeLinks (GetNodeLinksRequest) returns (GetNodeLinksResponse) {
@ -300,6 +302,16 @@ message DeleteNodeResponse {
bool result = 1;
}
message NodeCommandRequest {
int32 session_id = 1;
int32 node_id = 2;
string command = 3;
}
message NodeCommandResponse {
string output = 1;
}
message GetNodeLinksRequest {
int32 session_id = 1;
int32 node_id = 2;