dpospb

package
v0.0.0-...-84d53aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Candidate) GetAddr

func (m *Candidate) GetAddr() []byte

func (*Candidate) GetCollateral

func (m *Candidate) GetCollateral() []byte

func (*Candidate) GetId

func (m *Candidate) GetId() []byte

func (*Candidate) GetTimestamp

func (m *Candidate) GetTimestamp() int64

func (*Candidate) GetTxHash

func (m *Candidate) GetTxHash() []byte

func (*Candidate) GetUrl

func (m *Candidate) GetUrl() string

func (*Candidate) GetVotePower

func (m *Candidate) GetVotePower() []byte

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) Reset

func (m *Candidate) Reset()

func (*Candidate) String

func (m *Candidate) String() string

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) Descriptor() ([]byte, []int)

func (*State) GetCandidateRootHash

func (m *State) GetCandidateRootHash() []byte

func (*State) GetDynastyRootHash

func (m *State) GetDynastyRootHash() []byte

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) String

func (m *State) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL