Sfoglia il codice sorgente

DeliveryService测试

世祺 1 anno fa
parent
commit
a2247ceedd
1 ha cambiato i file con 9 aggiunte e 4 eliminazioni
  1. 9 4
      llnw.proto

+ 9 - 4
llnw.proto

@@ -3,8 +3,13 @@ package llnwApi.Delivery;
 service DeliveryService {
 service DeliveryService {
   rpc ListDeliveryServiceInstances(ShortName)returns(DeliveryList);
   rpc ListDeliveryServiceInstances(ShortName)returns(DeliveryList);
 }
 }
+message Base{
+  string username = 1;
+  string key = 2;
+}
 message ShortName{
 message ShortName{
-  string shortName = 1;
+  Base base = 1;
+  string shortName = 2;
 }
 }
 message ProtocolSetOptions{
 message ProtocolSetOptions{
   string name = 1;
   string name = 1;
@@ -16,7 +21,7 @@ message ProtocolSet{
   string publishedProtocol = 2;
   string publishedProtocol = 2;
   repeated ProtocolSetOptions options = 3;
   repeated ProtocolSetOptions options = 3;
 }
 }
-message Delivery{
+message DeliveryEntity{
   string uuid = 1;
   string uuid = 1;
   bool isEnabled = 2;
   bool isEnabled = 2;
   string shortname = 3;
   string shortname = 3;
@@ -26,8 +31,8 @@ message Delivery{
   string publishedHostname = 6;
   string publishedHostname = 6;
   string sourceUrlPath = 7;
   string sourceUrlPath = 7;
   string publishedUrlPath = 8;
   string publishedUrlPath = 8;
-  ProtocolSet protocolSets = 9;
+  repeated ProtocolSet protocolSets = 9;
 }
 }
 message DeliveryList{
 message DeliveryList{
-  repeated Delivery deliveries = 1;
+  repeated DeliveryEntity deliveries = 1;
 }
 }