世祺 1 год назад
Сommit
ce4ce8577a
1 измененных файлов с 33 добавлено и 0 удалено
  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;
+}