grpc added delete session and set session state apis
This commit is contained in:
parent
fcff9e4551
commit
ad7522b5bc
3 changed files with 88 additions and 8 deletions
|
@ -5,6 +5,8 @@ package core;
|
|||
service CoreApi {
|
||||
rpc CreateSession (CreateSessionRequest) returns (CreateSessionResponse) {
|
||||
}
|
||||
rpc DeleteSession (DeleteSessionRequest) returns (DeleteSessionResponse) {
|
||||
}
|
||||
rpc GetSessions (SessionsRequest) returns (SessionsResponse) {
|
||||
}
|
||||
rpc GetSession (SessionRequest) returns (SessionResponse) {
|
||||
|
@ -14,7 +16,8 @@ service CoreApi {
|
|||
rpc GetSessionLocation (GetSessionLocationRequest) returns (GetSessionLocationResponse) {
|
||||
}
|
||||
rpc SetSessionLocation (SetSessionLocationRequest) returns (SetSessionLocationResponse) {
|
||||
|
||||
}
|
||||
rpc SetSessionState (SetSessionStateRequest) returns (SetSessionStateResponse) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,6 +31,14 @@ message CreateSessionResponse {
|
|||
int32 state = 2;
|
||||
}
|
||||
|
||||
message DeleteSessionRequest {
|
||||
int32 id = 1;
|
||||
}
|
||||
|
||||
message DeleteSessionResponse {
|
||||
bool result = 1;
|
||||
}
|
||||
|
||||
message SessionsRequest {
|
||||
}
|
||||
|
||||
|
@ -69,10 +80,28 @@ message SetSessionLocationRequest {
|
|||
}
|
||||
|
||||
message SetSessionLocationResponse {
|
||||
}
|
||||
|
||||
message SetSessionStateRequest {
|
||||
int32 id = 1;
|
||||
SessionState state = 2;
|
||||
}
|
||||
|
||||
message SetSessionStateResponse {
|
||||
bool result = 1;
|
||||
}
|
||||
|
||||
// data structures for messages below
|
||||
enum SessionState {
|
||||
NONE = 0;
|
||||
DEFINITION = 1;
|
||||
CONFIGURATION = 2;
|
||||
INSTANTIATION = 3;
|
||||
RUNTIME = 4;
|
||||
DATACOLLECT = 5;
|
||||
SHUTDOWN = 6;
|
||||
}
|
||||
|
||||
message ConfigGroup {
|
||||
string name = 1;
|
||||
repeated ConfigOption options = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue