record.proto 539 B

1234567891011121314151617181920
  1. syntax = "proto2";
  2. package walpb;
  3. import "gogoproto/gogo.proto";
  4. option (gogoproto.marshaler_all) = true;
  5. option (gogoproto.sizer_all) = true;
  6. option (gogoproto.unmarshaler_all) = true;
  7. option (gogoproto.goproto_getters_all) = false;
  8. message Record {
  9. optional int64 type = 1 [(gogoproto.nullable) = false];
  10. optional uint32 crc = 2 [(gogoproto.nullable) = false];
  11. optional bytes data = 3;
  12. }
  13. message Snapshot {
  14. optional uint64 index = 1 [(gogoproto.nullable) = false];
  15. optional uint64 term = 2 [(gogoproto.nullable) = false];
  16. }