Peter Kurfer
d742b08c21
- migrate to buf v1 format - remove obsolete options as they can be added from buf.gen.yaml
48 lines
1.2 KiB
Protocol Buffer
48 lines
1.2 KiB
Protocol Buffer
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);
|
|
}
|