client-dotnet/proto/rpc/v1/pcap.proto

49 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package inetmock.rpc.v1;
import "google/protobuf/duration.proto";
message ListAvailableDevicesRequest {}
message ListAvailableDevicesResponse {
message PCAPDevice {
string name = 1;
repeated bytes addresses = 2;
}
repeated PCAPDevice available_devices = 1;
}
message ListActiveRecordingsRequest {}
message ListActiveRecordingsResponse {
repeated string subscriptions = 1;
}
message StartPCAPFileRecordingRequest {
string device = 1;
string target_path = 2;
bool promiscuous = 3;
google.protobuf.Duration read_timeout = 4;
}
message StartPCAPFileRecordingResponse {
string resolved_path = 1;
string consumer_key = 2;
}
message StopPCAPFileRecordingRequest {
string consumer_key = 1;
}
message StopPCAPFileRecordingResponse {
bool removed = 1;
}
service PCAPService {
rpc ListAvailableDevices(ListAvailableDevicesRequest) returns (ListAvailableDevicesResponse);
rpc ListActiveRecordings(ListActiveRecordingsRequest) returns (ListActiveRecordingsResponse);
rpc StartPCAPFileRecording(StartPCAPFileRecordingRequest) returns (StartPCAPFileRecordingResponse);
rpc StopPCAPFileRecording(StopPCAPFileRecordingRequest) returns (StopPCAPFileRecordingResponse);
}