client-dotnet/api/proto/rpc/audit.proto
2021-02-21 16:30:39 +01:00

49 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
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 "audit/event_entity.proto";
enum FileOpenMode {
TRUNCATE = 0;
APPEND = 1;
}
message WatchEventsRequest {
string watcherName = 1;
}
message RegisterFileSinkRequest {
string targetPath = 1;
}
message RegisterFileSinkResponse {
string resolvedPath = 1;
}
message RemoveFileSinkRequest {
string targetPath = 1;
}
message RemoveFileSinkResponse {
bool SinkGotRemoved = 1;
}
message ListSinksRequest {}
message ListSinksResponse {
repeated string sinks = 1;
}
service Audit {
rpc WatchEvents(WatchEventsRequest) returns (stream inetmock.audit.EventEntity);
rpc RegisterFileSink(RegisterFileSinkRequest) returns (RegisterFileSinkResponse);
rpc RemoveFileSink(RemoveFileSinkRequest) returns (RemoveFileSinkResponse);
rpc ListSinks(ListSinksRequest) returns (ListSinksResponse);
}