writing meta logs is working

This commit is contained in:
Chris Lu
2020-03-30 01:19:33 -07:00
parent 9dc0b1df8f
commit 50a5018b7f
12 changed files with 618 additions and 152 deletions

View File

@@ -42,6 +42,9 @@ service SeaweedFiler {
rpc GetFilerConfiguration (GetFilerConfigurationRequest) returns (GetFilerConfigurationResponse) {
}
rpc ListenForEvents (ListenForEventsRequest) returns (stream FullEventNotification) {
}
}
//////////////////////////////////////////////////
@@ -230,3 +233,19 @@ message GetFilerConfigurationResponse {
string dir_queues = 6;
bool cipher = 7;
}
message ListenForEventsRequest {
string client_name = 1;
string directory = 2;
int64 since_sec = 3;
}
message FullEventNotification {
string directory = 1;
EventNotification event_notification = 2;
}
message LogEntry {
int64 ts_ns = 1;
int32 partition_key_hash = 2;
bytes data = 3;
}