Enum value maps for LogRecord_Type.
var (
LogRecord_Type_name = map[int32]string{
0: "ENTRY",
1: "CONTROL",
2: "CRC_ANCHOR",
}
LogRecord_Type_value = map[string]int32{
"ENTRY": 0,
"CONTROL": 1,
"CRC_ANCHOR": 2,
}
)
var File_smartbftprotos_logrecord_proto protoreflect.FileDescriptor
var File_smartbftprotos_messages_proto protoreflect.FileDescriptor
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"`
// contains filtered or unexported fields
}
func (*Commit) Descriptor() ([]byte, []int)
Deprecated: Use Commit.ProtoReflect.Descriptor instead.
func (x *Commit) GetAssist() bool
func (x *Commit) GetDigest() string
func (x *Commit) GetSeq() uint64
func (x *Commit) GetSignature() *Signature
func (x *Commit) GetView() uint64
func (*Commit) ProtoMessage()
func (x *Commit) ProtoReflect() protoreflect.Message
func (x *Commit) Reset()
func (x *Commit) String() string
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"`
// contains filtered or unexported fields
}
func (*HeartBeat) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeat.ProtoReflect.Descriptor instead.
func (x *HeartBeat) GetSeq() uint64
func (x *HeartBeat) GetView() uint64
func (*HeartBeat) ProtoMessage()
func (x *HeartBeat) ProtoReflect() protoreflect.Message
func (x *HeartBeat) Reset()
func (x *HeartBeat) String() string
type HeartBeatResponse struct {
View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
// contains filtered or unexported fields
}
func (*HeartBeatResponse) Descriptor() ([]byte, []int)
Deprecated: Use HeartBeatResponse.ProtoReflect.Descriptor instead.
func (x *HeartBeatResponse) GetView() uint64
func (*HeartBeatResponse) ProtoMessage()
func (x *HeartBeatResponse) ProtoReflect() protoreflect.Message
func (x *HeartBeatResponse) Reset()
func (x *HeartBeatResponse) String() string
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"`
// contains filtered or unexported fields
}
func (*LogRecord) Descriptor() ([]byte, []int)
Deprecated: Use LogRecord.ProtoReflect.Descriptor instead.
func (x *LogRecord) GetData() []byte
func (x *LogRecord) GetTruncateTo() bool
func (x *LogRecord) GetType() LogRecord_Type
func (*LogRecord) ProtoMessage()
func (x *LogRecord) ProtoReflect() protoreflect.Message
func (x *LogRecord) Reset()
func (x *LogRecord) String() string
type LogRecord_Type int32
const (
LogRecord_ENTRY LogRecord_Type = 0 // Contains data
LogRecord_CONTROL LogRecord_Type = 1 // Does not contain data, only control fields
LogRecord_CRC_ANCHOR LogRecord_Type = 2 // A CRC anchor point
)
func (LogRecord_Type) Descriptor() protoreflect.EnumDescriptor
func (x LogRecord_Type) Enum() *LogRecord_Type
func (LogRecord_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogRecord_Type.Descriptor instead.
func (x LogRecord_Type) Number() protoreflect.EnumNumber
func (x LogRecord_Type) String() string
func (LogRecord_Type) Type() protoreflect.EnumType
type Message struct {
// Types that are assignable to Content:
// *Message_PrePrepare
// *Message_Prepare
// *Message_Commit
// *Message_ViewChange
// *Message_ViewData
// *Message_NewView
// *Message_HeartBeat
// *Message_HeartBeatResponse
// *Message_StateTransferRequest
// *Message_StateTransferResponse
Content isMessage_Content `protobuf_oneof:"content"`
// contains filtered or unexported fields
}
func (*Message) Descriptor() ([]byte, []int)
Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (x *Message) GetCommit() *Commit
func (m *Message) GetContent() isMessage_Content
func (x *Message) GetHeartBeat() *HeartBeat
func (x *Message) GetHeartBeatResponse() *HeartBeatResponse
func (x *Message) GetNewView() *NewView
func (x *Message) GetPrePrepare() *PrePrepare
func (x *Message) GetPrepare() *Prepare
func (x *Message) GetStateTransferRequest() *StateTransferRequest
func (x *Message) GetStateTransferResponse() *StateTransferResponse
func (x *Message) GetViewChange() *ViewChange
func (x *Message) GetViewData() *SignedViewData
func (*Message) ProtoMessage()
func (x *Message) ProtoReflect() protoreflect.Message
func (x *Message) Reset()
func (x *Message) String() string
type Message_Commit struct {
Commit *Commit `protobuf:"bytes,3,opt,name=commit,proto3,oneof"`
}
type Message_HeartBeat struct {
HeartBeat *HeartBeat `protobuf:"bytes,7,opt,name=heart_beat,json=heartBeat,proto3,oneof"`
}
type Message_HeartBeatResponse struct {
HeartBeatResponse *HeartBeatResponse `protobuf:"bytes,8,opt,name=heart_beat_response,json=heartBeatResponse,proto3,oneof"`
}
type Message_NewView struct {
NewView *NewView `protobuf:"bytes,6,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_StateTransferRequest struct {
StateTransferRequest *StateTransferRequest `protobuf:"bytes,9,opt,name=state_transfer_request,json=stateTransferRequest,proto3,oneof"`
}
type Message_StateTransferResponse struct {
StateTransferResponse *StateTransferResponse `protobuf:"bytes,10,opt,name=state_transfer_response,json=stateTransferResponse,proto3,oneof"`
}
type Message_ViewChange struct {
ViewChange *ViewChange `protobuf:"bytes,4,opt,name=view_change,json=viewChange,proto3,oneof"`
}
type Message_ViewData struct {
ViewData *SignedViewData `protobuf:"bytes,5,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"`
// contains filtered or unexported fields
}
func (*NewView) Descriptor() ([]byte, []int)
Deprecated: Use NewView.ProtoReflect.Descriptor instead.
func (x *NewView) GetSignedViewData() []*SignedViewData
func (*NewView) ProtoMessage()
func (x *NewView) ProtoReflect() protoreflect.Message
func (x *NewView) Reset()
func (x *NewView) String() string
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"`
// contains filtered or unexported fields
}
func (*PrePrepare) Descriptor() ([]byte, []int)
Deprecated: Use PrePrepare.ProtoReflect.Descriptor instead.
func (x *PrePrepare) GetProposal() *Proposal
func (x *PrePrepare) GetSeq() uint64
func (x *PrePrepare) GetView() uint64
func (*PrePrepare) ProtoMessage()
func (x *PrePrepare) ProtoReflect() protoreflect.Message
func (x *PrePrepare) Reset()
func (x *PrePrepare) String() string
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"`
// contains filtered or unexported fields
}
func (*Prepare) Descriptor() ([]byte, []int)
Deprecated: Use Prepare.ProtoReflect.Descriptor instead.
func (x *Prepare) GetAssist() bool
func (x *Prepare) GetDigest() string
func (x *Prepare) GetSeq() uint64
func (x *Prepare) GetView() uint64
func (*Prepare) ProtoMessage()
func (x *Prepare) ProtoReflect() protoreflect.Message
func (x *Prepare) Reset()
func (x *Prepare) String() string
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"`
// contains filtered or unexported fields
}
func (*Proposal) Descriptor() ([]byte, []int)
Deprecated: Use Proposal.ProtoReflect.Descriptor instead.
func (x *Proposal) GetHeader() []byte
func (x *Proposal) GetMetadata() []byte
func (x *Proposal) GetPayload() []byte
func (x *Proposal) GetVerificationSequence() uint64
func (*Proposal) ProtoMessage()
func (x *Proposal) ProtoReflect() protoreflect.Message
func (x *Proposal) Reset()
func (x *Proposal) String() string
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"`
// contains filtered or unexported fields
}
func (*ProposedRecord) Descriptor() ([]byte, []int)
Deprecated: Use ProposedRecord.ProtoReflect.Descriptor instead.
func (x *ProposedRecord) GetPrePrepare() *PrePrepare
func (x *ProposedRecord) GetPrepare() *Prepare
func (*ProposedRecord) ProtoMessage()
func (x *ProposedRecord) ProtoReflect() protoreflect.Message
func (x *ProposedRecord) Reset()
func (x *ProposedRecord) String() string
type SavedMessage struct {
// Types that are assignable to Content:
// *SavedMessage_ProposedRecord
// *SavedMessage_Commit
// *SavedMessage_NewView
// *SavedMessage_ViewChange
Content isSavedMessage_Content `protobuf_oneof:"content"`
// contains filtered or unexported fields
}
func (*SavedMessage) Descriptor() ([]byte, []int)
Deprecated: Use SavedMessage.ProtoReflect.Descriptor instead.
func (x *SavedMessage) GetCommit() *Message
func (m *SavedMessage) GetContent() isSavedMessage_Content
func (x *SavedMessage) GetNewView() *ViewMetadata
func (x *SavedMessage) GetProposedRecord() *ProposedRecord
func (x *SavedMessage) GetViewChange() *ViewChange
func (*SavedMessage) ProtoMessage()
func (x *SavedMessage) ProtoReflect() protoreflect.Message
func (x *SavedMessage) Reset()
func (x *SavedMessage) String() string
type SavedMessage_Commit struct {
Commit *Message `protobuf:"bytes,2,opt,name=commit,proto3,oneof"`
}
type SavedMessage_NewView struct {
NewView *ViewMetadata `protobuf:"bytes,3,opt,name=new_view,json=newView,proto3,oneof"`
}
type SavedMessage_ProposedRecord struct {
ProposedRecord *ProposedRecord `protobuf:"bytes,1,opt,name=proposed_record,json=proposedRecord,proto3,oneof"`
}
type SavedMessage_ViewChange struct {
ViewChange *ViewChange `protobuf:"bytes,4,opt,name=view_change,json=viewChange,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"`
// contains filtered or unexported fields
}
func (*Signature) Descriptor() ([]byte, []int)
Deprecated: Use Signature.ProtoReflect.Descriptor instead.
func (x *Signature) GetMsg() []byte
func (x *Signature) GetSigner() uint64
func (x *Signature) GetValue() []byte
func (*Signature) ProtoMessage()
func (x *Signature) ProtoReflect() protoreflect.Message
func (x *Signature) Reset()
func (x *Signature) String() string
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"`
// contains filtered or unexported fields
}
func (*SignedViewData) Descriptor() ([]byte, []int)
Deprecated: Use SignedViewData.ProtoReflect.Descriptor instead.
func (x *SignedViewData) GetRawViewData() []byte
func (x *SignedViewData) GetSignature() []byte
func (x *SignedViewData) GetSigner() uint64
func (*SignedViewData) ProtoMessage()
func (x *SignedViewData) ProtoReflect() protoreflect.Message
func (x *SignedViewData) Reset()
func (x *SignedViewData) String() string
type StateTransferRequest struct {
// contains filtered or unexported fields
}
func (*StateTransferRequest) Descriptor() ([]byte, []int)
Deprecated: Use StateTransferRequest.ProtoReflect.Descriptor instead.
func (*StateTransferRequest) ProtoMessage()
func (x *StateTransferRequest) ProtoReflect() protoreflect.Message
func (x *StateTransferRequest) Reset()
func (x *StateTransferRequest) String() string
type StateTransferResponse struct {
ViewNum uint64 `protobuf:"varint,1,opt,name=view_num,json=viewNum,proto3" json:"view_num,omitempty"`
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
// contains filtered or unexported fields
}
func (*StateTransferResponse) Descriptor() ([]byte, []int)
Deprecated: Use StateTransferResponse.ProtoReflect.Descriptor instead.
func (x *StateTransferResponse) GetSequence() uint64
func (x *StateTransferResponse) GetViewNum() uint64
func (*StateTransferResponse) ProtoMessage()
func (x *StateTransferResponse) ProtoReflect() protoreflect.Message
func (x *StateTransferResponse) Reset()
func (x *StateTransferResponse) String() string
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"`
// contains filtered or unexported fields
}
func (*ViewChange) Descriptor() ([]byte, []int)
Deprecated: Use ViewChange.ProtoReflect.Descriptor instead.
func (x *ViewChange) GetNextView() uint64
func (x *ViewChange) GetReason() string
func (*ViewChange) ProtoMessage()
func (x *ViewChange) ProtoReflect() protoreflect.Message
func (x *ViewChange) Reset()
func (x *ViewChange) String() string
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"`
// contains filtered or unexported fields
}
func (*ViewData) Descriptor() ([]byte, []int)
Deprecated: Use ViewData.ProtoReflect.Descriptor instead.
func (x *ViewData) GetInFlightPrepared() bool
func (x *ViewData) GetInFlightProposal() *Proposal
func (x *ViewData) GetLastDecision() *Proposal
func (x *ViewData) GetLastDecisionSignatures() []*Signature
func (x *ViewData) GetNextView() uint64
func (*ViewData) ProtoMessage()
func (x *ViewData) ProtoReflect() protoreflect.Message
func (x *ViewData) Reset()
func (x *ViewData) String() string
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"`
DecisionsInView uint64 `protobuf:"varint,3,opt,name=decisions_in_view,json=decisionsInView,proto3" json:"decisions_in_view,omitempty"`
// contains filtered or unexported fields
}
func (*ViewMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ViewMetadata.ProtoReflect.Descriptor instead.
func (x *ViewMetadata) GetDecisionsInView() uint64
func (x *ViewMetadata) GetLatestSequence() uint64
func (x *ViewMetadata) GetViewId() uint64
func (*ViewMetadata) ProtoMessage()
func (x *ViewMetadata) ProtoReflect() protoreflect.Message
func (x *ViewMetadata) Reset()
func (x *ViewMetadata) String() string