b61b4df2c2
a65ee4f Fix buf lint stage bc5fad6 Merge commit '580d2995be07ca1dd4839c3e9214ee881b98bb3e' into 45-add-api-to-restart-handlers 226c480 Add endpoint API to control running endpoint groups 505b06f Add support for DHCP to audit stream d742b08 Introduce profiling API e7e9e82 Introduce DNS-over-HTTPS and HTTP2 support 6a5ac9b Merge branch 'renovate/configure' into 'main' d9d3c9f Add renovate.json 5cad2aa Include PPROF handler to improve observability 3698421 Remove unnecessary proto import 74f521c Move to grpc default health service definition f341615 Return ConsumerKey when recording is started git-subtree-dir: api git-subtree-split: a65ee4f207bd1734095990e12e56069ec3881d0e
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);
|
|
}
|