introduce eventhistory service

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-02-20 10:29:04 +01:00
parent 30faae2ae4
commit afe9e220b4
28 changed files with 1426 additions and 1 deletions
+3 -1
View File
@@ -21,7 +21,9 @@ plugins:
ocis.services.thumbnails.v0;\
ocis.messages.thumbnails.v0;\
ocis.services.store.v0;\
ocis.messages.store.v0"
ocis.messages.store.v0;\
ocis.services.eventhistory.v0;\
ocis.messages.eventhistory.v0"
- name: openapiv2
path: ../../.bingo/protoc-gen-openapiv2
@@ -0,0 +1,16 @@
syntax = "proto3";
package ocis.messages.eventhistory.v0;
option go_package = "github.com/owncloud/ocis/v2/protogen/gen/ocis/messages/eventhistory/v0";
message Event {
// REQUIRED.
string type = 1;
// REQUIRED.
string id = 2;
// REQUIRED
bytes event = 3;
}
@@ -0,0 +1,50 @@
syntax = "proto3";
package ocis.services.eventhistory.v0;
option go_package = "github.com/owncloud/ocis/protogen/gen/ocis/services/eventhistory/v0";
import "ocis/messages/eventhistory/v0/eventhistory.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "ownCloud Infinite Scale thumbnails";
version: "1.0.0";
contact: {
name: "ownCloud GmbH";
url: "https://github.com/owncloud/ocis";
email: "support@owncloud.com";
};
license: {
name: "Apache-2.0";
url: "https://github.com/owncloud/ocis/blob/master/LICENSE";
};
};
schemes: HTTP;
schemes: HTTPS;
consumes: "application/json";
produces: "application/json";
external_docs: {
description: "Developer Manual";
url: "https://owncloud.dev/services/thumbnails/";
};
};
// A Service for storing events
service EventHistoryService {
// returns the specified events
rpc GetEvents(GetEventsRequest) returns (GetEventsResponse);
}
// A request to retrieve events
message GetEventsRequest {
// the ids of the events we want to get
repeated string ids = 1;
}
// The service response
message GetEventsResponse {
repeated ocis.messages.eventhistory.v0.Event events = 1;
}