log_entry.proto 679 B

12345678910111213141516171819202122
  1. package protobuf;
  2. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  3. option (gogoproto.gostring_all) = true;
  4. option (gogoproto.equal_all) = true;
  5. option (gogoproto.verbose_equal_all) = true;
  6. option (gogoproto.goproto_stringer_all) = false;
  7. option (gogoproto.stringer_all) = true;
  8. option (gogoproto.populate_all) = true;
  9. option (gogoproto.testgen_all) = true;
  10. option (gogoproto.benchgen_all) = true;
  11. option (gogoproto.marshaler_all) = true;
  12. option (gogoproto.sizer_all) = true;
  13. option (gogoproto.unmarshaler_all) = true;
  14. message LogEntry {
  15. required uint64 Index=1;
  16. required uint64 Term=2;
  17. required string CommandName=3;
  18. optional bytes Command=4; // for nop-command
  19. }