OSDN Git Service
(root)
/
bytom
/
bytom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added blockchain struct.
[bytom/bytom.git]
/
database
/
sinkdb
/
internal
/
sinkpb
/
op.proto
1
syntax = "proto3";
2
3
package sinkpb;
4
5
message Op {
6
enum Type {
7
SET = 0;
8
DELETE = 1;
9
}
10
Type type = 1;
11
string key = 2;
12
bytes value = 3;
13
}
14
15
message Cond {
16
enum Type {
17
KEY_EXISTS = 0;
18
NOT_KEY_EXISTS = 1;
19
VALUE_EQUAL = 2;
20
NOT_VALUE_EQUAL = 3;
21
INDEX_EQUAL = 4;
22
NOT_INDEX_EQUAL = 5;
23
}
24
Type type = 1;
25
string key = 2;
26
bytes value = 3;
27
uint64 index = 4;
28
}
29
30
message Instruction {
31
repeated Cond conditions = 1;
32
repeated Op operations = 2;
33
}