|
@@ -0,0 +1,46 @@
|
|
|
+syntax = "proto3";
|
|
|
+package llnwApi.Delivery.LDS;
|
|
|
+
|
|
|
+option java_multiple_files = true;
|
|
|
+option java_package = "io.grpc.llnw.delivery.LDS";
|
|
|
+
|
|
|
+service LogDeliveryService {
|
|
|
+ rpc CreateLDS(CreateLDSRequest)returns(CreateLDSResponse){};
|
|
|
+ rpc DeleteLDS(DeleteLDSRequest)returns(DeleteLDSResponse){};
|
|
|
+ rpc ListLDS(ListLDSRequest)returns(ListLDSResponse){};
|
|
|
+}
|
|
|
+
|
|
|
+message Base{
|
|
|
+ string username = 1;
|
|
|
+ string key = 2;
|
|
|
+}
|
|
|
+message CreateLDSRequest{
|
|
|
+ Base base = 1;
|
|
|
+ string shortName = 2;
|
|
|
+ string accessKey = 3;
|
|
|
+ string bucketName = 4;
|
|
|
+ string location = 5;
|
|
|
+ string path = 6;
|
|
|
+ string region = 7;
|
|
|
+ string secretKey = 8;
|
|
|
+ string name = 9;
|
|
|
+}
|
|
|
+message CreateLDSResponse{
|
|
|
+ bool isSuccess = 1;
|
|
|
+}
|
|
|
+message DeleteLDSRequest{
|
|
|
+ Base base = 1;
|
|
|
+ string shortName = 2;
|
|
|
+ string uuid = 3;
|
|
|
+}
|
|
|
+message DeleteLDSResponse{
|
|
|
+ bool isSuccess = 1;
|
|
|
+}
|
|
|
+message ListLDSRequest{
|
|
|
+ Base base = 1;
|
|
|
+ string shortName = 2;
|
|
|
+}
|
|
|
+message ListLDSResponse{
|
|
|
+ repeated string uuids = 1;
|
|
|
+}
|
|
|
+
|