aboutsummaryrefslogtreecommitdiff
path: root/weed/pb/queue.proto
blob: e212991d3be9d7c77b65a842a570cc8c1fc18cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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;
}