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