added grpc for a node command and fixed grpc unit tests
This commit is contained in:
parent
e063fcd4fe
commit
1890db5991
5 changed files with 52 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue