Squashed 'api/' changes from 24ae082..27cd7f5

27cd7f5 Format protobuf code

git-subtree-dir: api
git-subtree-split: 27cd7f5cb9988c3cd51014fff1ed865bf2620f56
This commit is contained in:
Peter 2021-02-21 16:30:39 +01:00
parent 7b1cc73553
commit 4858b425ff
6 changed files with 140 additions and 149 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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";

View file

@ -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,17 +35,15 @@ message RemoveFileSinkResponse {
bool SinkGotRemoved = 1; bool SinkGotRemoved = 1;
} }
message ListSinksRequest { message ListSinksRequest {}
}
message ListSinksResponse { message ListSinksResponse {
repeated string sinks = 1; repeated string sinks = 1;
} }
service Audit { service Audit {
rpc WatchEvents (WatchEventsRequest) returns (stream inetmock.audit.EventEntity); rpc WatchEvents(WatchEventsRequest) returns (stream inetmock.audit.EventEntity);
rpc RegisterFileSink (RegisterFileSinkRequest) returns (RegisterFileSinkResponse); rpc RegisterFileSink(RegisterFileSinkRequest) returns (RegisterFileSinkResponse);
rpc RemoveFileSink (RemoveFileSinkRequest) returns (RemoveFileSinkResponse); rpc RemoveFileSink(RemoveFileSinkRequest) returns (RemoveFileSinkResponse);
rpc ListSinks(ListSinksRequest) returns (ListSinksResponse); rpc ListSinks(ListSinksRequest) returns (ListSinksResponse);
} }

View file

@ -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 {

View file

@ -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;