add flatbuffer serde for message
This commit is contained in:
15
weed/pb/message.fbs
Normal file
15
weed/pb/message.fbs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user