improved gitignore for generated proto files, added new initial separate config service proto, incorporated into grpc api

This commit is contained in:
Blake Harnden 2020-01-18 13:52:15 -08:00
parent 43fe81a86e
commit 0af6a7a620
7 changed files with 161 additions and 4 deletions

View file

@ -0,0 +1,54 @@
syntax = "proto3";
package configservices;
message ConfigServiceValidationMode {
enum Enum {
BLOCKING = 0;
NON_BLOCKING = 1;
TIMER = 2;
}
}
message ConfigService {
string group = 1;
string name = 2;
repeated string executables = 3;
repeated string dependencies = 4;
repeated string directories = 5;
repeated string startup = 6;
repeated string validate = 7;
repeated string shutdown = 8;
ConfigServiceValidationMode.Enum validation_mode = 9;
int32 validation_timer = 10;
float validation_period = 11;
}
message GetConfigServicesRequest {
int32 session_id = 1;
}
message GetConfigServicesResponse {
repeated ConfigService services = 1;
}
message GetConfigServiceRequest {
int32 session_id = 1;
int32 node_id = 2;
string name = 3;
}
message GetConfigServiceResponse {
map<string, string> config = 1;
}
message SetConfigServiceRequest {
int32 session_id = 1;
int32 node_id = 2;
string name = 3;
map<string, string> config = 4;
}
message SetConfigServiceResponse {
bool result = 1;
}

View file

@ -5,6 +5,8 @@ package core;
option java_package = "com.core.client.grpc";
option java_outer_classname = "CoreProto";
import "core/api/grpc/configservices.proto";
service CoreApi {
// session rpc
rpc StartSession (StartSessionRequest) returns (StartSessionResponse) {
@ -102,6 +104,14 @@ service CoreApi {
rpc ServiceAction (ServiceActionRequest) returns (ServiceActionResponse) {
}
// config services
rpc GetConfigServices (configservices.GetConfigServicesRequest) returns (configservices.GetConfigServicesResponse) {
}
rpc GetConfigService (configservices.GetConfigServiceRequest) returns (configservices.GetConfigServiceResponse) {
}
rpc SetConfigService (configservices.SetConfigServiceRequest) returns (configservices.SetConfigServiceResponse) {
}
// wlan rpc
rpc GetWlanConfigs (GetWlanConfigsRequest) returns (GetWlanConfigsResponse) {
}