blob: b694cb2338aaf6a0677a11d8b8618380092a3cc9 [file] [log] [blame]
khenaidooab1f7bd2019-11-14 14:00:27 -05001syntax = "proto2";
2package walpb;
3
4import "gogoproto/gogo.proto";
5
6option (gogoproto.marshaler_all) = true;
7option (gogoproto.sizer_all) = true;
8option (gogoproto.unmarshaler_all) = true;
9option (gogoproto.goproto_getters_all) = false;
10
11message Record {
12 optional int64 type = 1 [(gogoproto.nullable) = false];
13 optional uint32 crc = 2 [(gogoproto.nullable) = false];
14 optional bytes data = 3;
15}
16
17message Snapshot {
18 optional uint64 index = 1 [(gogoproto.nullable) = false];
19 optional uint64 term = 2 [(gogoproto.nullable) = false];
20}