Documentation ¶
Index ¶
- Variables
- type CandidateInfo
- func (*CandidateInfo) Descriptor() ([]byte, []int)
- func (m *CandidateInfo) GetPeerId() string
- func (m *CandidateInfo) GetWeight() string
- func (m *CandidateInfo) Marshal() (dAtA []byte, err error)
- func (m *CandidateInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CandidateInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CandidateInfo) ProtoMessage()
- func (m *CandidateInfo) Reset()
- func (m *CandidateInfo) Size() (n int)
- func (m *CandidateInfo) String() string
- func (m *CandidateInfo) Unmarshal(dAtA []byte) error
- func (m *CandidateInfo) XXX_DiscardUnknown()
- func (m *CandidateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CandidateInfo) XXX_Merge(src proto.Message)
- func (m *CandidateInfo) XXX_Size() int
- func (m *CandidateInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CandidateInfo ¶
type CandidateInfo struct { // 节点标识 PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // 节点的投票权重 Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` }
func (*CandidateInfo) Descriptor ¶
func (*CandidateInfo) Descriptor() ([]byte, []int)
func (*CandidateInfo) GetPeerId ¶
func (m *CandidateInfo) GetPeerId() string
func (*CandidateInfo) GetWeight ¶
func (m *CandidateInfo) GetWeight() string
func (*CandidateInfo) Marshal ¶
func (m *CandidateInfo) Marshal() (dAtA []byte, err error)
func (*CandidateInfo) MarshalToSizedBuffer ¶
func (m *CandidateInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CandidateInfo) ProtoMessage ¶
func (*CandidateInfo) ProtoMessage()
func (*CandidateInfo) Reset ¶
func (m *CandidateInfo) Reset()
func (*CandidateInfo) Size ¶
func (m *CandidateInfo) Size() (n int)
func (*CandidateInfo) String ¶
func (m *CandidateInfo) String() string
func (*CandidateInfo) Unmarshal ¶
func (m *CandidateInfo) Unmarshal(dAtA []byte) error
func (*CandidateInfo) XXX_DiscardUnknown ¶
func (m *CandidateInfo) XXX_DiscardUnknown()
func (*CandidateInfo) XXX_Marshal ¶
func (m *CandidateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CandidateInfo) XXX_Merge ¶
func (m *CandidateInfo) XXX_Merge(src proto.Message)
func (*CandidateInfo) XXX_Size ¶
func (m *CandidateInfo) XXX_Size() int
func (*CandidateInfo) XXX_Unmarshal ¶
func (m *CandidateInfo) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.