-
Notifications
You must be signed in to change notification settings - Fork 12
/
input.proto
66 lines (50 loc) · 1.09 KB
/
input.proto
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
65
syntax = "proto3";
package main;
option java_package = "nl.prymr.rochefort";
option java_outer_classname = "Proto";
message Modify {
string namespace = 1;
int32 pos = 2;
uint64 offset = 3;
bytes data = 4;
bool resetLength = 5;
}
message Append {
string namespace = 1;
uint32 allocSize = 2;
repeated string tags = 4;
bytes data = 5;
}
message AppendInput {
repeated Append appendPayload = 1;
repeated Modify modifyPayload = 2;
}
message AppendOutput {
repeated uint64 offset = 1;
uint64 modifiedCount = 2;
}
message NamespaceInput {
string namespace = 1;
}
message SuccessOutput {
bool success = 1;
}
message Get {
string namespace = 1;
uint64 offset = 2;
}
message GetInput {
repeated Get getPayload = 1;
}
message ScanOutput {
bytes data = 1;
uint64 offset = 2;
}
message GetOutput {
repeated bytes data = 1;
}
message StatsOutput {
map<string,uint64> tags = 1;
uint64 offset = 2;
string file = 3;
}