feat: added v1 files

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-08-12 00:36:17 +02:00
parent 8c1f7f829d
commit fcaf77b777
7 changed files with 59 additions and 357 deletions

View File

@@ -0,0 +1,34 @@
syntax = "proto3";
import "google/protobuf/timestamp.proto";
package nodata.v1;
service NoDataService {
rpc PublishEvent(PublishEventRequest) returns (PublishEventResponse) {}
rpc GetTopics(GetTopicsRequest) returns (GetTopicsResponse) {}
rpc GetKeys(GetKeysRequest) returns (GetKeysResponse) {}
}
message PublishEventRequest {
string topic = 1;
google.protobuf.Timestamp published = 2;
string key = 3;
bytes value = 4;
optional string id = 5;
}
message PublishEventResponse {
}
message GetTopicsRequest {}
message GetTopicsResponse {
repeated string topics = 1;
}
message GetKeysRequest {
string topic = 1;
}
message GetKeysResponse {
repeated string keys = 1;
}