var LogRecord_Type_name = map[int32]string{ 0: "ENTRY", 1: "CONTROL", 2: "CRC_ANCHOR", }
var LogRecord_Type_value = map[string]int32{ "ENTRY": 0, "CONTROL": 1, "CRC_ANCHOR": 2, }
type Commit struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` Signature *Signature `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` Assist bool `protobuf:"varint,5,opt,name=assist,proto3" json:"assist,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Commit) Descriptor() ([]byte, []int)
func (m *Commit) GetAssist() bool
func (m *Commit) GetDigest() string
func (m *Commit) GetSeq() uint64
func (m *Commit) GetSignature() *Signature
func (m *Commit) GetView() uint64
func (*Commit) ProtoMessage()
func (m *Commit) Reset()
func (m *Commit) String() string
func (m *Commit) XXX_DiscardUnknown()
func (m *Commit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *Commit) XXX_Merge(src proto.Message)
func (m *Commit) XXX_Size() int
func (m *Commit) XXX_Unmarshal(b []byte) error
type Error struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor() ([]byte, []int)
func (m *Error) GetDigest() string
func (m *Error) GetReason() string
func (m *Error) GetSeq() uint64
func (m *Error) GetView() uint64
func (*Error) ProtoMessage()
func (m *Error) Reset()
func (m *Error) String() string
func (m *Error) XXX_DiscardUnknown()
func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *Error) XXX_Merge(src proto.Message)
func (m *Error) XXX_Size() int
func (m *Error) XXX_Unmarshal(b []byte) error
type HeartBeat struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HeartBeat) Descriptor() ([]byte, []int)
func (m *HeartBeat) GetSeq() uint64
func (m *HeartBeat) GetView() uint64
func (*HeartBeat) ProtoMessage()
func (m *HeartBeat) Reset()
func (m *HeartBeat) String() string
func (m *HeartBeat) XXX_DiscardUnknown()
func (m *HeartBeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *HeartBeat) XXX_Merge(src proto.Message)
func (m *HeartBeat) XXX_Size() int
func (m *HeartBeat) XXX_Unmarshal(b []byte) error
type LogRecord struct { Type LogRecord_Type `protobuf:"varint,1,opt,name=type,proto3,enum=smartbftprotos.LogRecord_Type" json:"type,omitempty"` TruncateTo bool `protobuf:"varint,2,opt,name=truncate_to,json=truncateTo,proto3" json:"truncate_to,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogRecord) Descriptor() ([]byte, []int)
func (m *LogRecord) GetData() []byte
func (m *LogRecord) GetTruncateTo() bool
func (m *LogRecord) GetType() LogRecord_Type
func (*LogRecord) ProtoMessage()
func (m *LogRecord) Reset()
func (m *LogRecord) String() string
func (m *LogRecord) XXX_DiscardUnknown()
func (m *LogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *LogRecord) XXX_Merge(src proto.Message)
func (m *LogRecord) XXX_Size() int
func (m *LogRecord) XXX_Unmarshal(b []byte) error
type LogRecord_Type int32
const ( LogRecord_ENTRY LogRecord_Type = 0 LogRecord_CONTROL LogRecord_Type = 1 LogRecord_CRC_ANCHOR LogRecord_Type = 2 )
func (LogRecord_Type) EnumDescriptor() ([]byte, []int)
func (x LogRecord_Type) String() string
type Message struct { // Types that are valid to be assigned to Content: // *Message_PrePrepare // *Message_Prepare // *Message_Commit // *Message_Error // *Message_ViewChange // *Message_ViewData // *Message_NewView // *Message_HeartBeat Content isMessage_Content `protobuf_oneof:"content"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor() ([]byte, []int)
func (m *Message) GetCommit() *Commit
func (m *Message) GetContent() isMessage_Content
func (m *Message) GetError() *Error
func (m *Message) GetHeartBeat() *HeartBeat
func (m *Message) GetNewView() *NewView
func (m *Message) GetPrePrepare() *PrePrepare
func (m *Message) GetPrepare() *Prepare
func (m *Message) GetViewChange() *ViewChange
func (m *Message) GetViewData() *SignedViewData
func (*Message) ProtoMessage()
func (m *Message) Reset()
func (m *Message) String() string
func (m *Message) XXX_DiscardUnknown()
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *Message) XXX_Merge(src proto.Message)
func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *Message) XXX_Size() int
func (m *Message) XXX_Unmarshal(b []byte) error
type Message_Commit struct { Commit *Commit `protobuf:"bytes,3,opt,name=commit,proto3,oneof"` }
type Message_Error struct { Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"` }
type Message_HeartBeat struct { HeartBeat *HeartBeat `protobuf:"bytes,8,opt,name=heart_beat,json=heartBeat,proto3,oneof"` }
type Message_NewView struct { NewView *NewView `protobuf:"bytes,7,opt,name=new_view,json=newView,proto3,oneof"` }
type Message_PrePrepare struct { PrePrepare *PrePrepare `protobuf:"bytes,1,opt,name=pre_prepare,json=prePrepare,proto3,oneof"` }
type Message_Prepare struct { Prepare *Prepare `protobuf:"bytes,2,opt,name=prepare,proto3,oneof"` }
type Message_ViewChange struct { ViewChange *ViewChange `protobuf:"bytes,5,opt,name=view_change,json=viewChange,proto3,oneof"` }
type Message_ViewData struct { ViewData *SignedViewData `protobuf:"bytes,6,opt,name=view_data,json=viewData,proto3,oneof"` }
type NewView struct { SignedViewData []*SignedViewData `protobuf:"bytes,2,rep,name=signed_view_data,json=signedViewData,proto3" json:"signed_view_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NewView) Descriptor() ([]byte, []int)
func (m *NewView) GetSignedViewData() []*SignedViewData
func (*NewView) ProtoMessage()
func (m *NewView) Reset()
func (m *NewView) String() string
func (m *NewView) XXX_DiscardUnknown()
func (m *NewView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *NewView) XXX_Merge(src proto.Message)
func (m *NewView) XXX_Size() int
func (m *NewView) XXX_Unmarshal(b []byte) error
type PrePrepare struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` Proposal *Proposal `protobuf:"bytes,3,opt,name=proposal,proto3" json:"proposal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrePrepare) Descriptor() ([]byte, []int)
func (m *PrePrepare) GetProposal() *Proposal
func (m *PrePrepare) GetSeq() uint64
func (m *PrePrepare) GetView() uint64
func (*PrePrepare) ProtoMessage()
func (m *PrePrepare) Reset()
func (m *PrePrepare) String() string
func (m *PrePrepare) XXX_DiscardUnknown()
func (m *PrePrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *PrePrepare) XXX_Merge(src proto.Message)
func (m *PrePrepare) XXX_Size() int
func (m *PrePrepare) XXX_Unmarshal(b []byte) error
type Prepare struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` Assist bool `protobuf:"varint,4,opt,name=assist,proto3" json:"assist,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Prepare) Descriptor() ([]byte, []int)
func (m *Prepare) GetAssist() bool
func (m *Prepare) GetDigest() string
func (m *Prepare) GetSeq() uint64
func (m *Prepare) GetSignature() []byte
func (m *Prepare) GetView() uint64
func (*Prepare) ProtoMessage()
func (m *Prepare) Reset()
func (m *Prepare) String() string
func (m *Prepare) XXX_DiscardUnknown()
func (m *Prepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *Prepare) XXX_Merge(src proto.Message)
func (m *Prepare) XXX_Size() int
func (m *Prepare) XXX_Unmarshal(b []byte) error
type Proposal struct { Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` VerificationSequence uint64 `protobuf:"varint,4,opt,name=verification_sequence,json=verificationSequence,proto3" json:"verification_sequence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Proposal) Descriptor() ([]byte, []int)
func (m *Proposal) GetHeader() []byte
func (m *Proposal) GetMetadata() []byte
func (m *Proposal) GetPayload() []byte
func (m *Proposal) GetVerificationSequence() uint64
func (*Proposal) ProtoMessage()
func (m *Proposal) Reset()
func (m *Proposal) String() string
func (m *Proposal) XXX_DiscardUnknown()
func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *Proposal) XXX_Merge(src proto.Message)
func (m *Proposal) XXX_Size() int
func (m *Proposal) XXX_Unmarshal(b []byte) error
type ProposedRecord struct { PrePrepare *PrePrepare `protobuf:"bytes,1,opt,name=pre_prepare,json=prePrepare,proto3" json:"pre_prepare,omitempty"` Prepare *Prepare `protobuf:"bytes,2,opt,name=prepare,proto3" json:"prepare,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProposedRecord) Descriptor() ([]byte, []int)
func (m *ProposedRecord) GetPrePrepare() *PrePrepare
func (m *ProposedRecord) GetPrepare() *Prepare
func (*ProposedRecord) ProtoMessage()
func (m *ProposedRecord) Reset()
func (m *ProposedRecord) String() string
func (m *ProposedRecord) XXX_DiscardUnknown()
func (m *ProposedRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ProposedRecord) XXX_Merge(src proto.Message)
func (m *ProposedRecord) XXX_Size() int
func (m *ProposedRecord) XXX_Unmarshal(b []byte) error
type SavedMessage struct { // Types that are valid to be assigned to Content: // *SavedMessage_ProposedRecord // *SavedMessage_Commit Content isSavedMessage_Content `protobuf_oneof:"content"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SavedMessage) Descriptor() ([]byte, []int)
func (m *SavedMessage) GetCommit() *Message
func (m *SavedMessage) GetContent() isSavedMessage_Content
func (m *SavedMessage) GetProposedRecord() *ProposedRecord
func (*SavedMessage) ProtoMessage()
func (m *SavedMessage) Reset()
func (m *SavedMessage) String() string
func (m *SavedMessage) XXX_DiscardUnknown()
func (m *SavedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *SavedMessage) XXX_Merge(src proto.Message)
func (*SavedMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (m *SavedMessage) XXX_Size() int
func (m *SavedMessage) XXX_Unmarshal(b []byte) error
type SavedMessage_Commit struct { Commit *Message `protobuf:"bytes,2,opt,name=commit,proto3,oneof"` }
type SavedMessage_ProposedRecord struct { ProposedRecord *ProposedRecord `protobuf:"bytes,1,opt,name=proposed_record,json=proposedRecord,proto3,oneof"` }
type Signature struct { Signer uint64 `protobuf:"varint,1,opt,name=signer,proto3" json:"signer,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Msg []byte `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Signature) Descriptor() ([]byte, []int)
func (m *Signature) GetMsg() []byte
func (m *Signature) GetSigner() uint64
func (m *Signature) GetValue() []byte
func (*Signature) ProtoMessage()
func (m *Signature) Reset()
func (m *Signature) String() string
func (m *Signature) XXX_DiscardUnknown()
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *Signature) XXX_Merge(src proto.Message)
func (m *Signature) XXX_Size() int
func (m *Signature) XXX_Unmarshal(b []byte) error
type SignedViewData struct { RawViewData []byte `protobuf:"bytes,1,opt,name=raw_view_data,json=rawViewData,proto3" json:"raw_view_data,omitempty"` Signer uint64 `protobuf:"varint,2,opt,name=signer,proto3" json:"signer,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedViewData) Descriptor() ([]byte, []int)
func (m *SignedViewData) GetRawViewData() []byte
func (m *SignedViewData) GetSignature() []byte
func (m *SignedViewData) GetSigner() uint64
func (*SignedViewData) ProtoMessage()
func (m *SignedViewData) Reset()
func (m *SignedViewData) String() string
func (m *SignedViewData) XXX_DiscardUnknown()
func (m *SignedViewData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *SignedViewData) XXX_Merge(src proto.Message)
func (m *SignedViewData) XXX_Size() int
func (m *SignedViewData) XXX_Unmarshal(b []byte) error
type ViewChange struct { NextView uint64 `protobuf:"varint,1,opt,name=next_view,json=nextView,proto3" json:"next_view,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ViewChange) Descriptor() ([]byte, []int)
func (m *ViewChange) GetNextView() uint64
func (m *ViewChange) GetReason() string
func (*ViewChange) ProtoMessage()
func (m *ViewChange) Reset()
func (m *ViewChange) String() string
func (m *ViewChange) XXX_DiscardUnknown()
func (m *ViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ViewChange) XXX_Merge(src proto.Message)
func (m *ViewChange) XXX_Size() int
func (m *ViewChange) XXX_Unmarshal(b []byte) error
type ViewData struct { NextView uint64 `protobuf:"varint,1,opt,name=next_view,json=nextView,proto3" json:"next_view,omitempty"` LastDecision *Proposal `protobuf:"bytes,2,opt,name=last_decision,json=lastDecision,proto3" json:"last_decision,omitempty"` LastDecisionSignatures []*Signature `protobuf:"bytes,3,rep,name=last_decision_signatures,json=lastDecisionSignatures,proto3" json:"last_decision_signatures,omitempty"` InFlightProposal *Proposal `protobuf:"bytes,4,opt,name=in_flight_proposal,json=inFlightProposal,proto3" json:"in_flight_proposal,omitempty"` InFlightPrepared bool `protobuf:"varint,5,opt,name=in_flight_prepared,json=inFlightPrepared,proto3" json:"in_flight_prepared,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ViewData) Descriptor() ([]byte, []int)
func (m *ViewData) GetInFlightPrepared() bool
func (m *ViewData) GetInFlightProposal() *Proposal
func (m *ViewData) GetLastDecision() *Proposal
func (m *ViewData) GetLastDecisionSignatures() []*Signature
func (m *ViewData) GetNextView() uint64
func (*ViewData) ProtoMessage()
func (m *ViewData) Reset()
func (m *ViewData) String() string
func (m *ViewData) XXX_DiscardUnknown()
func (m *ViewData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ViewData) XXX_Merge(src proto.Message)
func (m *ViewData) XXX_Size() int
func (m *ViewData) XXX_Unmarshal(b []byte) error
type ViewMetadata struct { ViewId uint64 `protobuf:"varint,1,opt,name=view_id,json=viewId,proto3" json:"view_id,omitempty"` LatestSequence uint64 `protobuf:"varint,2,opt,name=latest_sequence,json=latestSequence,proto3" json:"latest_sequence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ViewMetadata) Descriptor() ([]byte, []int)
func (m *ViewMetadata) GetLatestSequence() uint64
func (m *ViewMetadata) GetViewId() uint64
func (*ViewMetadata) ProtoMessage()
func (m *ViewMetadata) Reset()
func (m *ViewMetadata) String() string
func (m *ViewMetadata) XXX_DiscardUnknown()
func (m *ViewMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (dst *ViewMetadata) XXX_Merge(src proto.Message)
func (m *ViewMetadata) XXX_Size() int
func (m *ViewMetadata) XXX_Unmarshal(b []byte) error