No tarball for gmail
This commit is contained in:
28
proto/pubsub.proto
Normal file
28
proto/pubsub.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
syntax = "proto3";
|
||||
package pubsub;
|
||||
|
||||
service PubSub {
|
||||
|
||||
rpc Publish(PublishMessage) returns (PublishResponse) {}
|
||||
|
||||
rpc Consume(Consumer) returns (Message) {}
|
||||
|
||||
}
|
||||
|
||||
message PublishResponse {
|
||||
}
|
||||
|
||||
message Consumer {
|
||||
string topic = 1;
|
||||
uint64 timeout_ms = 2;
|
||||
}
|
||||
|
||||
message PublishMessage {
|
||||
string topic = 1;
|
||||
string message = 2;
|
||||
}
|
||||
|
||||
message Message {
|
||||
string message = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user