Help us shape the future of Go! Take the 2026 Go Developer Survey

dpospb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDpos = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDpos   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	Addr  []byte `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Votes int64  `protobuf:"varint,2,opt,name=votes,proto3" json:"votes,omitempty"`
	Peer  string `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"`
}

func (*Candidate) Descriptor

func (*Candidate) Descriptor() ([]byte, []int)

func (*Candidate) GetAddr

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

func (*Candidate) GetPeer

func (m *Candidate) GetPeer() string

func (*Candidate) GetVotes

func (m *Candidate) GetVotes() int64

func (*Candidate) Marshal

func (m *Candidate) Marshal() (dAtA []byte, err error)

func (*Candidate) MarshalTo

func (m *Candidate) MarshalTo(dAtA []byte) (int, error)

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) Reset

func (m *Candidate) Reset()

func (*Candidate) Size

func (m *Candidate) Size() (n int)

func (*Candidate) String

func (m *Candidate) String() string

func (*Candidate) Unmarshal

func (m *Candidate) Unmarshal(dAtA []byte) error

func (*Candidate) XXX_DiscardUnknown

func (m *Candidate) XXX_DiscardUnknown()

func (*Candidate) XXX_Marshal

func (m *Candidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Candidate) XXX_Merge

func (dst *Candidate) XXX_Merge(src proto.Message)

func (*Candidate) XXX_Size

func (m *Candidate) XXX_Size() int

func (*Candidate) XXX_Unmarshal

func (m *Candidate) XXX_Unmarshal(b []byte) error

type CandidateContext

type CandidateContext struct {
	Height     uint32       `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Candidates []*Candidate `protobuf:"bytes,2,rep,name=candidates" json:"candidates,omitempty"`
}

func (*CandidateContext) Descriptor

func (*CandidateContext) Descriptor() ([]byte, []int)

func (*CandidateContext) GetCandidates

func (m *CandidateContext) GetCandidates() []*Candidate

func (*CandidateContext) GetHeight

func (m *CandidateContext) GetHeight() uint32

func (*CandidateContext) Marshal

func (m *CandidateContext) Marshal() (dAtA []byte, err error)

func (*CandidateContext) MarshalTo

func (m *CandidateContext) MarshalTo(dAtA []byte) (int, error)

func (*CandidateContext) ProtoMessage

func (*CandidateContext) ProtoMessage()

func (*CandidateContext) Reset

func (m *CandidateContext) Reset()

func (*CandidateContext) Size

func (m *CandidateContext) Size() (n int)

func (*CandidateContext) String

func (m *CandidateContext) String() string

func (*CandidateContext) Unmarshal

func (m *CandidateContext) Unmarshal(dAtA []byte) error

func (*CandidateContext) XXX_DiscardUnknown

func (m *CandidateContext) XXX_DiscardUnknown()

func (*CandidateContext) XXX_Marshal

func (m *CandidateContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandidateContext) XXX_Merge

func (dst *CandidateContext) XXX_Merge(src proto.Message)

func (*CandidateContext) XXX_Size

func (m *CandidateContext) XXX_Size() int

func (*CandidateContext) XXX_Unmarshal

func (m *CandidateContext) XXX_Unmarshal(b []byte) error

type EternalBlockMsg

type EternalBlockMsg struct {
	Hash      []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Timestamp int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*EternalBlockMsg) Descriptor

func (*EternalBlockMsg) Descriptor() ([]byte, []int)

func (*EternalBlockMsg) GetHash

func (m *EternalBlockMsg) GetHash() []byte

func (*EternalBlockMsg) GetSignature

func (m *EternalBlockMsg) GetSignature() []byte

func (*EternalBlockMsg) GetTimestamp

func (m *EternalBlockMsg) GetTimestamp() int64

func (*EternalBlockMsg) Marshal

func (m *EternalBlockMsg) Marshal() (dAtA []byte, err error)

func (*EternalBlockMsg) MarshalTo

func (m *EternalBlockMsg) MarshalTo(dAtA []byte) (int, error)

func (*EternalBlockMsg) ProtoMessage

func (*EternalBlockMsg) ProtoMessage()

func (*EternalBlockMsg) Reset

func (m *EternalBlockMsg) Reset()

func (*EternalBlockMsg) Size

func (m *EternalBlockMsg) Size() (n int)

func (*EternalBlockMsg) String

func (m *EternalBlockMsg) String() string

func (*EternalBlockMsg) Unmarshal

func (m *EternalBlockMsg) Unmarshal(dAtA []byte) error

func (*EternalBlockMsg) XXX_DiscardUnknown

func (m *EternalBlockMsg) XXX_DiscardUnknown()

func (*EternalBlockMsg) XXX_Marshal

func (m *EternalBlockMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EternalBlockMsg) XXX_Merge

func (dst *EternalBlockMsg) XXX_Merge(src proto.Message)

func (*EternalBlockMsg) XXX_Size

func (m *EternalBlockMsg) XXX_Size() int

func (*EternalBlockMsg) XXX_Unmarshal

func (m *EternalBlockMsg) XXX_Unmarshal(b []byte) error

type Period

type Period struct {
	Addr   []byte `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
}

func (*Period) Descriptor

func (*Period) Descriptor() ([]byte, []int)

func (*Period) GetAddr

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

func (*Period) GetPeerId

func (m *Period) GetPeerId() string

func (*Period) Marshal

func (m *Period) Marshal() (dAtA []byte, err error)

func (*Period) MarshalTo

func (m *Period) MarshalTo(dAtA []byte) (int, error)

func (*Period) ProtoMessage

func (*Period) ProtoMessage()

func (*Period) Reset

func (m *Period) Reset()

func (*Period) Size

func (m *Period) Size() (n int)

func (*Period) String

func (m *Period) String() string

func (*Period) Unmarshal

func (m *Period) Unmarshal(dAtA []byte) error

func (*Period) XXX_DiscardUnknown

func (m *Period) XXX_DiscardUnknown()

func (*Period) XXX_Marshal

func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Period) XXX_Merge

func (dst *Period) XXX_Merge(src proto.Message)

func (*Period) XXX_Size

func (m *Period) XXX_Size() int

func (*Period) XXX_Unmarshal

func (m *Period) XXX_Unmarshal(b []byte) error

type PeriodContext

type PeriodContext struct {
	Period     []*Period `protobuf:"bytes,1,rep,name=period" json:"period,omitempty"`
	NextPeriod []*Period `protobuf:"bytes,2,rep,name=next_period,json=nextPeriod" json:"next_period,omitempty"`
}

func (*PeriodContext) Descriptor

func (*PeriodContext) Descriptor() ([]byte, []int)

func (*PeriodContext) GetNextPeriod

func (m *PeriodContext) GetNextPeriod() []*Period

func (*PeriodContext) GetPeriod

func (m *PeriodContext) GetPeriod() []*Period

func (*PeriodContext) Marshal

func (m *PeriodContext) Marshal() (dAtA []byte, err error)

func (*PeriodContext) MarshalTo

func (m *PeriodContext) MarshalTo(dAtA []byte) (int, error)

func (*PeriodContext) ProtoMessage

func (*PeriodContext) ProtoMessage()

func (*PeriodContext) Reset

func (m *PeriodContext) Reset()

func (*PeriodContext) Size

func (m *PeriodContext) Size() (n int)

func (*PeriodContext) String

func (m *PeriodContext) String() string

func (*PeriodContext) Unmarshal

func (m *PeriodContext) Unmarshal(dAtA []byte) error

func (*PeriodContext) XXX_DiscardUnknown

func (m *PeriodContext) XXX_DiscardUnknown()

func (*PeriodContext) XXX_Marshal

func (m *PeriodContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeriodContext) XXX_Merge

func (dst *PeriodContext) XXX_Merge(src proto.Message)

func (*PeriodContext) XXX_Size

func (m *PeriodContext) XXX_Size() int

func (*PeriodContext) XXX_Unmarshal

func (m *PeriodContext) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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