nodata/proto/nodata/v1/nodata.proto
kjuulh a327cdb02e
feat: remove keys and ids
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-11-09 11:47:50 +01:00

32 lines
654 B
Protocol Buffer

syntax = "proto3";
import "google/protobuf/timestamp.proto";
package nodata.v1;
service NoDataService {
rpc PublishEvent(PublishEventRequest) returns (PublishEventResponse) {}
rpc GetTopics(GetTopicsRequest) returns (GetTopicsResponse) {}
rpc Subscribe(SubscribeRequest) returns (stream SubscribeResponse){}
}
message PublishEventRequest {
string topic = 1;
bytes value = 2;
}
message PublishEventResponse {}
message GetTopicsRequest {}
message GetTopicsResponse {
repeated string topics = 1;
}
message SubscribeRequest {
string topic = 1;
}
message SubscribeResponse{
google.protobuf.Timestamp published = 2;
bytes value = 4;
}