Format protobuf code
This commit is contained in:
parent
24ae0820e8
commit
27cd7f5cb9
6 changed files with 140 additions and 149 deletions
|
@ -1,12 +1,12 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package inetmock.audit.details;
|
||||||
|
|
||||||
|
option csharp_namespace = "INetMock.Client.Audit.Details";
|
||||||
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit/details";
|
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit/details";
|
||||||
option java_multiple_files = true;
|
option java_multiple_files = true;
|
||||||
option java_package = "com.github.baez90.inetmock.audit.details";
|
|
||||||
option java_outer_classname = "HandlerEventProto";
|
option java_outer_classname = "HandlerEventProto";
|
||||||
option csharp_namespace = "INetMock.Client.Audit.Details";
|
option java_package = "com.github.baez90.inetmock.audit.details";
|
||||||
|
|
||||||
package inetmock.audit.details;
|
|
||||||
|
|
||||||
enum DNSOpCode {
|
enum DNSOpCode {
|
||||||
Query = 0;
|
Query = 0;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package inetmock.audit.details;
|
||||||
|
|
||||||
|
option csharp_namespace = "INetMock.Client.Audit.Details";
|
||||||
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit/details";
|
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit/details";
|
||||||
option java_multiple_files = true;
|
option java_multiple_files = true;
|
||||||
option java_package = "com.github.baez90.inetmock.audit.details";
|
|
||||||
option java_outer_classname = "HandlerEventProto";
|
option java_outer_classname = "HandlerEventProto";
|
||||||
option csharp_namespace = "INetMock.Client.Audit.Details";
|
option java_package = "com.github.baez90.inetmock.audit.details";
|
||||||
|
|
||||||
package inetmock.audit.details;
|
|
||||||
|
|
||||||
enum HTTPMethod {
|
enum HTTPMethod {
|
||||||
GET = 0;
|
GET = 0;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package inetmock.audit;
|
||||||
|
|
||||||
|
option csharp_namespace = "INetMock.Client.Audit";
|
||||||
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit";
|
option go_package = "gitlab.com/inetmock/inetmock/pkg/audit";
|
||||||
option java_multiple_files = true;
|
option java_multiple_files = true;
|
||||||
option java_package = "com.github.baez90.inetmock.audit";
|
|
||||||
option java_outer_classname = "HandlerEventProto";
|
option java_outer_classname = "HandlerEventProto";
|
||||||
option csharp_namespace = "INetMock.Client.Audit";
|
option java_package = "com.github.baez90.inetmock.audit";
|
||||||
|
|
||||||
package inetmock.audit;
|
|
||||||
|
|
||||||
import "google/protobuf/any.proto";
|
import "google/protobuf/any.proto";
|
||||||
import "google/protobuf/timestamp.proto";
|
import "google/protobuf/timestamp.proto";
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package inetmock.rpc;
|
||||||
|
|
||||||
|
option csharp_namespace = "INetMock.Client.Rpc";
|
||||||
option go_package = "gitlab.com/inetmock/inetmock/pkg/rpc";
|
option go_package = "gitlab.com/inetmock/inetmock/pkg/rpc";
|
||||||
option java_multiple_files = true;
|
option java_multiple_files = true;
|
||||||
option java_package = "com.github.baez90.inetmock.rpc";
|
|
||||||
option java_outer_classname = "AuditProto";
|
option java_outer_classname = "AuditProto";
|
||||||
option csharp_namespace = "INetMock.Client.Rpc";
|
option java_package = "com.github.baez90.inetmock.rpc";
|
||||||
|
|
||||||
import 'audit/event_entity.proto';
|
import "audit/event_entity.proto";
|
||||||
|
|
||||||
package inetmock.rpc;
|
|
||||||
|
|
||||||
enum FileOpenMode {
|
enum FileOpenMode {
|
||||||
TRUNCATE = 0;
|
TRUNCATE = 0;
|
||||||
|
@ -35,9 +35,7 @@ message RemoveFileSinkResponse {
|
||||||
bool SinkGotRemoved = 1;
|
bool SinkGotRemoved = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListSinksRequest {
|
message ListSinksRequest {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
message ListSinksResponse {
|
message ListSinksResponse {
|
||||||
repeated string sinks = 1;
|
repeated string sinks = 1;
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
option go_package = "gitlab.com/inetmock/inetmock/internal/rpc";
|
|
||||||
option java_multiple_files = true;
|
|
||||||
option java_package = "com.github.baez90.inetmock.rpc";
|
|
||||||
option java_outer_classname = "HealthProto";
|
|
||||||
option csharp_namespace = "INetMock.Client.Rpc";
|
|
||||||
|
|
||||||
package inetmock.rpc;
|
package inetmock.rpc;
|
||||||
|
|
||||||
|
option csharp_namespace = "INetMock.Client.Rpc";
|
||||||
|
option go_package = "gitlab.com/inetmock/inetmock/internal/rpc";
|
||||||
|
option java_multiple_files = true;
|
||||||
|
option java_outer_classname = "HealthProto";
|
||||||
|
option java_package = "com.github.baez90.inetmock.rpc";
|
||||||
|
|
||||||
service Health {
|
service Health {
|
||||||
rpc GetHealth (HealthRequest) returns (HealthResponse) {
|
rpc GetHealth(HealthRequest) returns (HealthResponse);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum HealthState {
|
enum HealthState {
|
||||||
|
|
|
@ -1,32 +1,26 @@
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
option go_package = "gitlab.com/inetmock/inetmock/pkg/rpc";
|
|
||||||
option java_multiple_files = true;
|
|
||||||
option java_package = "com.github.baez90.inetmock.rpc";
|
|
||||||
option java_outer_classname = "AuditProto";
|
|
||||||
option csharp_namespace = "INetMock.Client.Rpc";
|
|
||||||
|
|
||||||
package inetmock.rpc;
|
package inetmock.rpc;
|
||||||
|
|
||||||
|
option csharp_namespace = "INetMock.Client.Rpc";
|
||||||
|
option go_package = "gitlab.com/inetmock/inetmock/pkg/rpc";
|
||||||
|
option java_multiple_files = true;
|
||||||
|
option java_outer_classname = "AuditProto";
|
||||||
|
option java_package = "com.github.baez90.inetmock.rpc";
|
||||||
|
|
||||||
import "google/protobuf/duration.proto";
|
import "google/protobuf/duration.proto";
|
||||||
|
|
||||||
message ListAvailableDevicesRequest {
|
message ListAvailableDevicesRequest {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
message ListAvailableDevicesResponse {
|
message ListAvailableDevicesResponse {
|
||||||
|
|
||||||
message PCAPDevice {
|
message PCAPDevice {
|
||||||
string name = 1;
|
string name = 1;
|
||||||
repeated bytes addresses = 2;
|
repeated bytes addresses = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
repeated PCAPDevice availableDevices = 1;
|
repeated PCAPDevice availableDevices = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListRecordingsRequest {
|
message ListRecordingsRequest {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
message ListRecordingsResponse {
|
message ListRecordingsResponse {
|
||||||
repeated string subscriptions = 1;
|
repeated string subscriptions = 1;
|
||||||
|
|
Loading…
Reference in a new issue