|
|
@@ -67,6 +67,27 @@ func (m *CampaignRequest) String() string { return proto.CompactTextS
|
|
|
func (*CampaignRequest) ProtoMessage() {}
|
|
|
func (*CampaignRequest) Descriptor() ([]byte, []int) { return fileDescriptorV3Election, []int{0} }
|
|
|
|
|
|
+func (m *CampaignRequest) GetName() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Name
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CampaignRequest) GetLease() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Lease
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *CampaignRequest) GetValue() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Value
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
type CampaignResponse struct {
|
|
|
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
|
|
|
// leader describes the resources used for holding leadereship of the election.
|
|
|
@@ -111,6 +132,34 @@ func (m *LeaderKey) String() string { return proto.CompactTextString(
|
|
|
func (*LeaderKey) ProtoMessage() {}
|
|
|
func (*LeaderKey) Descriptor() ([]byte, []int) { return fileDescriptorV3Election, []int{2} }
|
|
|
|
|
|
+func (m *LeaderKey) GetName() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Name
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *LeaderKey) GetKey() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Key
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (m *LeaderKey) GetRev() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Rev
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (m *LeaderKey) GetLease() int64 {
|
|
|
+ if m != nil {
|
|
|
+ return m.Lease
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
type LeaderRequest struct {
|
|
|
// name is the election identifier for the leadership information.
|
|
|
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
@@ -121,6 +170,13 @@ func (m *LeaderRequest) String() string { return proto.CompactTextStr
|
|
|
func (*LeaderRequest) ProtoMessage() {}
|
|
|
func (*LeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorV3Election, []int{3} }
|
|
|
|
|
|
+func (m *LeaderRequest) GetName() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Name
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
type LeaderResponse struct {
|
|
|
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
|
|
|
// kv is the key-value pair representing the latest leader update.
|
|
|
@@ -198,6 +254,13 @@ func (m *ProclaimRequest) GetLeader() *LeaderKey {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+func (m *ProclaimRequest) GetValue() []byte {
|
|
|
+ if m != nil {
|
|
|
+ return m.Value
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
type ProclaimResponse struct {
|
|
|
Header *etcdserverpb.ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
|
|
|
}
|