nodata/proto/nomicon.proto
kjuulh 8c1f7f829d
feat: add operations endpoint to get topics
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-08-12 00:26:17 +02:00

35 lines
685 B
Protocol Buffer

syntax = "proto3";
import "google/protobuf/timestamp.proto";
package nodata;
service NoData {
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;
}