Complete CLI integration

This commit is contained in:
Peter 2021-02-17 15:39:06 +01:00
parent d01a9dec69
commit e30a1299eb

View file

@ -8,6 +8,8 @@ option csharp_namespace = "INetMock.Client.Rpc";
package inetmock.rpc; package inetmock.rpc;
import "google/protobuf/duration.proto";
message ListAvailableDevicesRequest { message ListAvailableDevicesRequest {
} }
@ -27,15 +29,14 @@ message ListRecordingsRequest {
} }
message ListRecordingsResponse { message ListRecordingsResponse {
message ConsumerList { repeated string subscriptions = 1;
repeated string consumers = 1;
}
map<string, ConsumerList> subscriptions = 1;
} }
message RegisterPCAPFileRecordRequest { message RegisterPCAPFileRecordRequest {
string device = 1; string device = 1;
string targetPath = 2; string targetPath = 2;
bool promiscuous = 3;
google.protobuf.Duration readTimeout = 4;
} }
message RegisterPCAPFileRecordResponse { message RegisterPCAPFileRecordResponse {
@ -43,8 +44,7 @@ message RegisterPCAPFileRecordResponse {
} }
message RemovePCAPFileRecordRequest { message RemovePCAPFileRecordRequest {
string device = 1; string consumerKey = 1;
string targetPath = 2;
} }
message RemovePCAPFileRecordResponse { message RemovePCAPFileRecordResponse {
@ -53,7 +53,7 @@ message RemovePCAPFileRecordResponse {
service PCAP { service PCAP {
rpc ListAvailableDevices(ListAvailableDevicesRequest) returns (ListAvailableDevicesResponse); rpc ListAvailableDevices(ListAvailableDevicesRequest) returns (ListAvailableDevicesResponse);
rpc ListRecordings(ListRecordingsRequest) returns (ListRecordingsResponse); rpc ListActiveRecordings(ListRecordingsRequest) returns (ListRecordingsResponse);
rpc RegisterPCAPFileRecord(RegisterPCAPFileRecordRequest) returns (RegisterPCAPFileRecordResponse); rpc StartPCAPFileRecording(RegisterPCAPFileRecordRequest) returns (RegisterPCAPFileRecordResponse);
rpc RemovePCAPFileRecord(RemovePCAPFileRecordRequest) returns (RemovePCAPFileRecordResponse); rpc StopPCAPFileRecord(RemovePCAPFileRecordRequest) returns (RemovePCAPFileRecordResponse);
} }