32 lines
654 B
Protocol Buffer
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;
|
|
}
|