diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-02-27 00:07:13 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-02-27 00:07:13 -0800 |
| commit | 555413d9fc4837302ef1c5b2b921b406c9de6777 (patch) | |
| tree | dfd0f67586df0320fd9a77288651475d2ccdcc6c /weed/pb/queue.proto | |
| parent | 430b5a49e2abd9e3751e8c5840a690541ddc66ca (diff) | |
| download | seaweedfs-555413d9fc4837302ef1c5b2b921b406c9de6777.tar.xz seaweedfs-555413d9fc4837302ef1c5b2b921b406c9de6777.zip | |
weed queue starts
Diffstat (limited to 'weed/pb/queue.proto')
| -rw-r--r-- | weed/pb/queue.proto | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/weed/pb/queue.proto b/weed/pb/queue.proto new file mode 100644 index 000000000..e212991d3 --- /dev/null +++ b/weed/pb/queue.proto @@ -0,0 +1,64 @@ +syntax = "proto3"; + +package queue_pb; + +option java_package = "seaweedfs.client"; +option java_outer_classname = "QueueProto"; + +////////////////////////////////////////////////// + +service SeaweedQueue { + + rpc StreamWrite (stream WriteMessageRequest) returns (stream WriteMessageResponse) { + } + + rpc StreamRead (ReadMessageRequest) returns (stream ReadMessageResponse) { + } + + rpc ConfigureTopic (ConfigureTopicRequest) returns (ConfigureTopicResponse) { + } + + rpc DeleteTopic (DeleteTopicRequest) returns (DeleteTopicResponse) { + } + +} + +////////////////////////////////////////////////// + + +message WriteMessageRequest { + string topic = 1; + int64 event_ns = 2; + bytes data = 3; +} + +message WriteMessageResponse { + string error = 1; + int64 ack_ns = 2; +} + +message ReadMessageRequest { + string topic = 1; + int64 start_ns = 2; +} + +message ReadMessageResponse { + string error = 1; + int64 event_ns = 2; + bytes data = 3; +} + +message ConfigureTopicRequest { + string topic = 1; + int64 ttl_seconds = 2; +} +message ConfigureTopicResponse { + string error = 1; +} + +message DeleteTopicRequest { + string topic = 1; +} +message DeleteTopicResponse { + string error = 1; +} |
