You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
617 B

3 years ago
  1. syntax = "proto3";
  2. package skiplist;
  3. option go_package = "github.com/seaweedfs/seaweedfs/weed/util/skiplist";
  4. message SkipListProto {
  5. repeated SkipListElementReference start_levels = 1;
  6. repeated SkipListElementReference end_levels = 2;
  7. int32 max_new_level = 3;
  8. int32 max_level = 4;
  9. }
  10. message SkipListElementReference {
  11. int64 element_pointer = 1;
  12. bytes key = 2;
  13. }
  14. message SkipListElement {
  15. int64 id = 1;
  16. repeated SkipListElementReference next = 2;
  17. int32 level = 3;
  18. bytes key = 4;
  19. bytes value = 5;
  20. SkipListElementReference prev = 6;
  21. }
  22. message NameBatchData {
  23. repeated bytes names = 1;
  24. }