Documentation ¶
Index ¶
- Variables
- type Candidate
- func (*Candidate) Descriptor() ([]byte, []int)
- func (m *Candidate) GetAddr() []byte
- func (m *Candidate) GetPeer() string
- func (m *Candidate) GetVotes() int64
- func (m *Candidate) Marshal() (dAtA []byte, err error)
- func (m *Candidate) MarshalTo(dAtA []byte) (int, error)
- func (*Candidate) ProtoMessage()
- func (m *Candidate) Reset()
- func (m *Candidate) Size() (n int)
- func (m *Candidate) String() string
- func (m *Candidate) Unmarshal(dAtA []byte) error
- func (m *Candidate) XXX_DiscardUnknown()
- func (m *Candidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Candidate) XXX_Merge(src proto.Message)
- func (m *Candidate) XXX_Size() int
- func (m *Candidate) XXX_Unmarshal(b []byte) error
- type CandidateContext
- func (*CandidateContext) Descriptor() ([]byte, []int)
- func (m *CandidateContext) GetCandidates() []*Candidate
- func (m *CandidateContext) Marshal() (dAtA []byte, err error)
- func (m *CandidateContext) MarshalTo(dAtA []byte) (int, error)
- func (*CandidateContext) ProtoMessage()
- func (m *CandidateContext) Reset()
- func (m *CandidateContext) Size() (n int)
- func (m *CandidateContext) String() string
- func (m *CandidateContext) Unmarshal(dAtA []byte) error
- func (m *CandidateContext) XXX_DiscardUnknown()
- func (m *CandidateContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CandidateContext) XXX_Merge(src proto.Message)
- func (m *CandidateContext) XXX_Size() int
- func (m *CandidateContext) XXX_Unmarshal(b []byte) error
- type EternalBlockMsg
- func (*EternalBlockMsg) Descriptor() ([]byte, []int)
- func (m *EternalBlockMsg) GetHash() []byte
- func (m *EternalBlockMsg) GetSignature() []byte
- func (m *EternalBlockMsg) GetTimestamp() int64
- func (m *EternalBlockMsg) Marshal() (dAtA []byte, err error)
- func (m *EternalBlockMsg) MarshalTo(dAtA []byte) (int, error)
- func (*EternalBlockMsg) ProtoMessage()
- func (m *EternalBlockMsg) Reset()
- func (m *EternalBlockMsg) Size() (n int)
- func (m *EternalBlockMsg) String() string
- func (m *EternalBlockMsg) Unmarshal(dAtA []byte) error
- func (m *EternalBlockMsg) XXX_DiscardUnknown()
- func (m *EternalBlockMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EternalBlockMsg) XXX_Merge(src proto.Message)
- func (m *EternalBlockMsg) XXX_Size() int
- func (m *EternalBlockMsg) XXX_Unmarshal(b []byte) error
- type Period
- func (*Period) Descriptor() ([]byte, []int)
- func (m *Period) GetAddr() []byte
- func (m *Period) GetPeerId() string
- func (m *Period) Marshal() (dAtA []byte, err error)
- func (m *Period) MarshalTo(dAtA []byte) (int, error)
- func (*Period) ProtoMessage()
- func (m *Period) Reset()
- func (m *Period) Size() (n int)
- func (m *Period) String() string
- func (m *Period) Unmarshal(dAtA []byte) error
- func (m *Period) XXX_DiscardUnknown()
- func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Period) XXX_Merge(src proto.Message)
- func (m *Period) XXX_Size() int
- func (m *Period) XXX_Unmarshal(b []byte) error
- type PeriodContext
- func (*PeriodContext) Descriptor() ([]byte, []int)
- func (m *PeriodContext) GetNextPeriod() []*Period
- func (m *PeriodContext) GetPeriod() []*Period
- func (m *PeriodContext) Marshal() (dAtA []byte, err error)
- func (m *PeriodContext) MarshalTo(dAtA []byte) (int, error)
- func (*PeriodContext) ProtoMessage()
- func (m *PeriodContext) Reset()
- func (m *PeriodContext) Size() (n int)
- func (m *PeriodContext) String() string
- func (m *PeriodContext) Unmarshal(dAtA []byte) error
- func (m *PeriodContext) XXX_DiscardUnknown()
- func (m *PeriodContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeriodContext) XXX_Merge(src proto.Message)
- func (m *PeriodContext) XXX_Size() int
- func (m *PeriodContext) XXX_Unmarshal(b []byte) error
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) ProtoMessage ¶
func (*Candidate) ProtoMessage()
func (*Candidate) XXX_DiscardUnknown ¶
func (m *Candidate) XXX_DiscardUnknown()
func (*Candidate) XXX_Marshal ¶
func (*Candidate) XXX_Unmarshal ¶
type CandidateContext ¶
type CandidateContext struct {
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) Marshal ¶
func (m *CandidateContext) Marshal() (dAtA []byte, err 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) 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) ProtoMessage ¶
func (*Period) ProtoMessage()
func (*Period) XXX_DiscardUnknown ¶
func (m *Period) XXX_DiscardUnknown()
func (*Period) XXX_Marshal ¶
func (*Period) XXX_Unmarshal ¶
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) 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
Click to show internal directories.
Click to hide internal directories.