grpc: added call to stream node movements using geo/xy and tests to validate usage, fixed potential exception when not setting session geo ref and using conversions
This commit is contained in:
parent
e323f8965e
commit
1884103cb4
5 changed files with 132 additions and 4 deletions
|
@ -61,6 +61,8 @@ service CoreApi {
|
|||
}
|
||||
rpc GetNodeTerminal (GetNodeTerminalRequest) returns (GetNodeTerminalResponse) {
|
||||
}
|
||||
rpc MoveNodes (stream MoveNodesRequest) returns (MoveNodesResponse) {
|
||||
}
|
||||
|
||||
// link rpc
|
||||
rpc GetNodeLinks (GetNodeLinksRequest) returns (GetNodeLinksResponse) {
|
||||
|
@ -446,6 +448,19 @@ message GetNodeTerminalResponse {
|
|||
string terminal = 1;
|
||||
}
|
||||
|
||||
message MoveNodesRequest {
|
||||
int32 session_id = 1;
|
||||
int32 node_id = 2;
|
||||
string source = 3;
|
||||
oneof move_type {
|
||||
Position position = 4;
|
||||
Geo geo = 5;
|
||||
}
|
||||
}
|
||||
|
||||
message MoveNodesResponse {
|
||||
}
|
||||
|
||||
message NodeCommandRequest {
|
||||
int32 session_id = 1;
|
||||
int32 node_id = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue