membership.proto 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. syntax = "proto3";
  2. package membershippb;
  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. // RaftAttributes represents the raft related attributes of an etcd member.
  9. message RaftAttributes {
  10. // peerURLs is the list of peers in the raft cluster.
  11. repeated string peer_urls = 1;
  12. // isLearner indicates if the member is raft learner.
  13. bool is_learner = 2;
  14. }
  15. // Attributes represents all the non-raft related attributes of an etcd member.
  16. message Attributes {
  17. string name = 1;
  18. repeated string client_urls = 2;
  19. }
  20. message Member {
  21. uint64 ID = 1;
  22. RaftAttributes raft_attributes = 2;
  23. Attributes member_attributes = 3;
  24. }
  25. message ClusterVersionSetRequest {
  26. string ver = 1;
  27. }
  28. message ClusterMemberAttrSetRequest {
  29. uint64 member_ID = 1;
  30. Attributes member_attributes = 2;
  31. }
  32. message DowngradeInfoSetRequest {
  33. bool enabled = 1;
  34. string ver = 2;
  35. }