add flatbuffer serde for message

This commit is contained in:
chrislu
2022-07-18 00:25:14 -07:00
parent 1f2c5ee06e
commit 7f672b37e1
10 changed files with 425 additions and 0 deletions

15
weed/pb/message.fbs Normal file
View File

@@ -0,0 +1,15 @@
table NameValue {
name:string (key);
value:string;
}
table Message {
producer_id:int32 (id:0);
producer_seq:int64 (id:2);
segment_id:int32 (id:1);
segment_seq:int64 (id:3);
event_ts_ns:int64 (id:4);
recv_ts_ns:int64 (id:5);
properties:[NameValue] (id:6);
key:string (id:7); // bytes
data:string (id:8); // bytes
}