Documentation ¶
Overview ¶
Package dpospb is a generated protocol buffer package.
It is generated from these files:
dpos.proto
It has these top-level messages:
State Candidate BecomeCandidatePayload VotePayload
Index ¶
- type BecomeCandidatePayload
- type Candidate
- func (*Candidate) Descriptor() ([]byte, []int)
- func (m *Candidate) GetAddr() []byte
- func (m *Candidate) GetCollateral() []byte
- func (m *Candidate) GetId() []byte
- func (m *Candidate) GetTimestamp() int64
- func (m *Candidate) GetTxHash() []byte
- func (m *Candidate) GetUrl() string
- func (m *Candidate) GetVotePower() []byte
- func (*Candidate) ProtoMessage()
- func (m *Candidate) Reset()
- func (m *Candidate) String() string
- type State
- type VotePayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BecomeCandidatePayload ¶
type BecomeCandidatePayload struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
}
func (*BecomeCandidatePayload) Descriptor ¶
func (*BecomeCandidatePayload) Descriptor() ([]byte, []int)
func (*BecomeCandidatePayload) GetUrl ¶
func (m *BecomeCandidatePayload) GetUrl() string
func (*BecomeCandidatePayload) ProtoMessage ¶
func (*BecomeCandidatePayload) ProtoMessage()
func (*BecomeCandidatePayload) Reset ¶
func (m *BecomeCandidatePayload) Reset()
func (*BecomeCandidatePayload) String ¶
func (m *BecomeCandidatePayload) String() string
type Candidate ¶
type Candidate struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Addr []byte `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` Collateral []byte `protobuf:"bytes,4,opt,name=collateral,proto3" json:"collateral,omitempty"` VotePower []byte `protobuf:"bytes,5,opt,name=vote_power,json=votePower,proto3" json:"vote_power,omitempty"` Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` Timestamp int64 `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*Candidate) Descriptor ¶
func (*Candidate) GetCollateral ¶
func (*Candidate) GetTimestamp ¶
func (*Candidate) GetVotePower ¶
func (*Candidate) ProtoMessage ¶
func (*Candidate) ProtoMessage()
type State ¶
type State struct { CandidateRootHash []byte `protobuf:"bytes,1,opt,name=candidate_root_hash,json=candidateRootHash,proto3" json:"candidate_root_hash,omitempty"` DynastyRootHash []byte `protobuf:"bytes,2,opt,name=dynasty_root_hash,json=dynastyRootHash,proto3" json:"dynasty_root_hash,omitempty"` }
func (*State) Descriptor ¶
func (*State) GetCandidateRootHash ¶
func (*State) GetDynastyRootHash ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
type VotePayload ¶
type VotePayload struct {
CandidateIDs [][]byte `protobuf:"bytes,1,rep,name=candidateIDs" json:"candidateIDs,omitempty"`
}
func (*VotePayload) Descriptor ¶
func (*VotePayload) Descriptor() ([]byte, []int)
func (*VotePayload) GetCandidateIDs ¶
func (m *VotePayload) GetCandidateIDs() [][]byte
func (*VotePayload) ProtoMessage ¶
func (*VotePayload) ProtoMessage()
func (*VotePayload) Reset ¶
func (m *VotePayload) Reset()
func (*VotePayload) String ¶
func (m *VotePayload) String() string
Click to show internal directories.
Click to hide internal directories.