Explorar el Código

添加Delivery初始proto

世祺 hace 1 año
commit
ce4ce8577a
Se han modificado 1 ficheros con 33 adiciones y 0 borrados
  1. 33 0
      llnw.proto

+ 33 - 0
llnw.proto

@@ -0,0 +1,33 @@
+syntax = "proto3";
+package llnwApi.Delivery;
+service DeliveryService {
+  rpc ListDeliveryServiceInstances(ShortName)returns(DeliveryList);
+}
+message ShortName{
+  string shortName = 1;
+}
+message ProtocolSetOptions{
+  string name = 1;
+  repeated string parameters = 2;
+  string source = 3;
+}
+message ProtocolSet{
+  string sourceProtocol = 1;
+  string publishedProtocol = 2;
+  repeated ProtocolSetOptions options = 3;
+}
+message Delivery{
+  string uuid = 1;
+  bool isEnabled = 2;
+  string shortname = 3;
+  string status = 4;
+
+  string sourceHostname = 5;
+  string publishedHostname = 6;
+  string sourceUrlPath = 7;
+  string publishedUrlPath = 8;
+  ProtocolSet protocolSets = 9;
+}
+message DeliveryList{
+  repeated Delivery deliveries = 1;
+}