...

Package smartbftprotos

import "github.com/SmartBFT-Go/consensus/smartbftprotos"
Overview
Index

Overview ▾

Index ▾

Variables
type Commit
    func (*Commit) Descriptor() ([]byte, []int)
    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
    func (*HeartBeat) Descriptor() ([]byte, []int)
    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
    func (*HeartBeatResponse) Descriptor() ([]byte, []int)
    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
    func (*LogRecord) Descriptor() ([]byte, []int)
    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
    func (LogRecord_Type) Descriptor() protoreflect.EnumDescriptor
    func (x LogRecord_Type) Enum() *LogRecord_Type
    func (LogRecord_Type) EnumDescriptor() ([]byte, []int)
    func (x LogRecord_Type) Number() protoreflect.EnumNumber
    func (x LogRecord_Type) String() string
    func (LogRecord_Type) Type() protoreflect.EnumType
type Message
    func (*Message) Descriptor() ([]byte, []int)
    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
type Message_HeartBeat
type Message_HeartBeatResponse
type Message_NewView
type Message_PrePrepare
type Message_Prepare
type Message_StateTransferRequest
type Message_StateTransferResponse
type Message_ViewChange
type Message_ViewData
type NewView
    func (*NewView) Descriptor() ([]byte, []int)
    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
    func (*PrePrepare) Descriptor() ([]byte, []int)
    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
    func (*Prepare) Descriptor() ([]byte, []int)
    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
    func (*Proposal) Descriptor() ([]byte, []int)
    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
    func (*ProposedRecord) Descriptor() ([]byte, []int)
    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
    func (*SavedMessage) Descriptor() ([]byte, []int)
    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
type SavedMessage_NewView
type SavedMessage_ProposedRecord
type SavedMessage_ViewChange
type Signature
    func (*Signature) Descriptor() ([]byte, []int)
    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
    func (*SignedViewData) Descriptor() ([]byte, []int)
    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
    func (*StateTransferRequest) Descriptor() ([]byte, []int)
    func (*StateTransferRequest) ProtoMessage()
    func (x *StateTransferRequest) ProtoReflect() protoreflect.Message
    func (x *StateTransferRequest) Reset()
    func (x *StateTransferRequest) String() string
type StateTransferResponse
    func (*StateTransferResponse) Descriptor() ([]byte, []int)
    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
    func (*ViewChange) Descriptor() ([]byte, []int)
    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
    func (*ViewData) Descriptor() ([]byte, []int)
    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
    func (*ViewMetadata) Descriptor() ([]byte, []int)
    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

Package files

logrecord.pb.go messages.pb.go

Variables

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

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

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

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAssist

func (x *Commit) GetAssist() bool

func (*Commit) GetDigest

func (x *Commit) GetDigest() string

func (*Commit) GetSeq

func (x *Commit) GetSeq() uint64

func (*Commit) GetSignature

func (x *Commit) GetSignature() *Signature

func (*Commit) GetView

func (x *Commit) GetView() uint64

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

func (x *Commit) ProtoReflect() protoreflect.Message

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type HeartBeat

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

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

Deprecated: Use HeartBeat.ProtoReflect.Descriptor instead.

func (*HeartBeat) GetSeq

func (x *HeartBeat) GetSeq() uint64

func (*HeartBeat) GetView

func (x *HeartBeat) GetView() uint64

func (*HeartBeat) ProtoMessage

func (*HeartBeat) ProtoMessage()

func (*HeartBeat) ProtoReflect

func (x *HeartBeat) ProtoReflect() protoreflect.Message

func (*HeartBeat) Reset

func (x *HeartBeat) Reset()

func (*HeartBeat) String

func (x *HeartBeat) String() string

type HeartBeatResponse

type HeartBeatResponse struct {
    View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"`
    // contains filtered or unexported fields
}

func (*HeartBeatResponse) Descriptor

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

Deprecated: Use HeartBeatResponse.ProtoReflect.Descriptor instead.

func (*HeartBeatResponse) GetView

func (x *HeartBeatResponse) GetView() uint64

func (*HeartBeatResponse) ProtoMessage

func (*HeartBeatResponse) ProtoMessage()

func (*HeartBeatResponse) ProtoReflect

func (x *HeartBeatResponse) ProtoReflect() protoreflect.Message

func (*HeartBeatResponse) Reset

func (x *HeartBeatResponse) Reset()

func (*HeartBeatResponse) String

func (x *HeartBeatResponse) String() string

type LogRecord

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

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

Deprecated: Use LogRecord.ProtoReflect.Descriptor instead.

func (*LogRecord) GetData

func (x *LogRecord) GetData() []byte

func (*LogRecord) GetTruncateTo

func (x *LogRecord) GetTruncateTo() bool

func (*LogRecord) GetType

func (x *LogRecord) GetType() LogRecord_Type

func (*LogRecord) ProtoMessage

func (*LogRecord) ProtoMessage()

func (*LogRecord) ProtoReflect

func (x *LogRecord) ProtoReflect() protoreflect.Message

func (*LogRecord) Reset

func (x *LogRecord) Reset()

func (*LogRecord) String

func (x *LogRecord) String() string

type LogRecord_Type

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

func (LogRecord_Type) Descriptor() protoreflect.EnumDescriptor

func (LogRecord_Type) Enum

func (x LogRecord_Type) Enum() *LogRecord_Type

func (LogRecord_Type) EnumDescriptor

func (LogRecord_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogRecord_Type.Descriptor instead.

func (LogRecord_Type) Number

func (x LogRecord_Type) Number() protoreflect.EnumNumber

func (LogRecord_Type) String

func (x LogRecord_Type) String() string

func (LogRecord_Type) Type

func (LogRecord_Type) Type() protoreflect.EnumType

type Message

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

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetCommit

func (x *Message) GetCommit() *Commit

func (*Message) GetContent

func (m *Message) GetContent() isMessage_Content

func (*Message) GetHeartBeat

func (x *Message) GetHeartBeat() *HeartBeat

func (*Message) GetHeartBeatResponse

func (x *Message) GetHeartBeatResponse() *HeartBeatResponse

func (*Message) GetNewView

func (x *Message) GetNewView() *NewView

func (*Message) GetPrePrepare

func (x *Message) GetPrePrepare() *PrePrepare

func (*Message) GetPrepare

func (x *Message) GetPrepare() *Prepare

func (*Message) GetStateTransferRequest

func (x *Message) GetStateTransferRequest() *StateTransferRequest

func (*Message) GetStateTransferResponse

func (x *Message) GetStateTransferResponse() *StateTransferResponse

func (*Message) GetViewChange

func (x *Message) GetViewChange() *ViewChange

func (*Message) GetViewData

func (x *Message) GetViewData() *SignedViewData

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_Commit

type Message_Commit struct {
    Commit *Commit `protobuf:"bytes,3,opt,name=commit,proto3,oneof"`
}

type Message_HeartBeat

type Message_HeartBeat struct {
    HeartBeat *HeartBeat `protobuf:"bytes,7,opt,name=heart_beat,json=heartBeat,proto3,oneof"`
}

type Message_HeartBeatResponse

type Message_HeartBeatResponse struct {
    HeartBeatResponse *HeartBeatResponse `protobuf:"bytes,8,opt,name=heart_beat_response,json=heartBeatResponse,proto3,oneof"`
}

type Message_NewView

type Message_NewView struct {
    NewView *NewView `protobuf:"bytes,6,opt,name=new_view,json=newView,proto3,oneof"`
}

type Message_PrePrepare

type Message_PrePrepare struct {
    PrePrepare *PrePrepare `protobuf:"bytes,1,opt,name=pre_prepare,json=prePrepare,proto3,oneof"`
}

type Message_Prepare

type Message_Prepare struct {
    Prepare *Prepare `protobuf:"bytes,2,opt,name=prepare,proto3,oneof"`
}

type Message_StateTransferRequest

type Message_StateTransferRequest struct {
    StateTransferRequest *StateTransferRequest `protobuf:"bytes,9,opt,name=state_transfer_request,json=stateTransferRequest,proto3,oneof"`
}

type Message_StateTransferResponse

type Message_StateTransferResponse struct {
    StateTransferResponse *StateTransferResponse `protobuf:"bytes,10,opt,name=state_transfer_response,json=stateTransferResponse,proto3,oneof"`
}

type Message_ViewChange

type Message_ViewChange struct {
    ViewChange *ViewChange `protobuf:"bytes,4,opt,name=view_change,json=viewChange,proto3,oneof"`
}

type Message_ViewData

type Message_ViewData struct {
    ViewData *SignedViewData `protobuf:"bytes,5,opt,name=view_data,json=viewData,proto3,oneof"`
}

type NewView

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

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

Deprecated: Use NewView.ProtoReflect.Descriptor instead.

func (*NewView) GetSignedViewData

func (x *NewView) GetSignedViewData() []*SignedViewData

func (*NewView) ProtoMessage

func (*NewView) ProtoMessage()

func (*NewView) ProtoReflect

func (x *NewView) ProtoReflect() protoreflect.Message

func (*NewView) Reset

func (x *NewView) Reset()

func (*NewView) String

func (x *NewView) String() string

type PrePrepare

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

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

Deprecated: Use PrePrepare.ProtoReflect.Descriptor instead.

func (*PrePrepare) GetProposal

func (x *PrePrepare) GetProposal() *Proposal

func (*PrePrepare) GetSeq

func (x *PrePrepare) GetSeq() uint64

func (*PrePrepare) GetView

func (x *PrePrepare) GetView() uint64

func (*PrePrepare) ProtoMessage

func (*PrePrepare) ProtoMessage()

func (*PrePrepare) ProtoReflect

func (x *PrePrepare) ProtoReflect() protoreflect.Message

func (*PrePrepare) Reset

func (x *PrePrepare) Reset()

func (*PrePrepare) String

func (x *PrePrepare) String() string

type Prepare

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

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

Deprecated: Use Prepare.ProtoReflect.Descriptor instead.

func (*Prepare) GetAssist

func (x *Prepare) GetAssist() bool

func (*Prepare) GetDigest

func (x *Prepare) GetDigest() string

func (*Prepare) GetSeq

func (x *Prepare) GetSeq() uint64

func (*Prepare) GetView

func (x *Prepare) GetView() uint64

func (*Prepare) ProtoMessage

func (*Prepare) ProtoMessage()

func (*Prepare) ProtoReflect

func (x *Prepare) ProtoReflect() protoreflect.Message

func (*Prepare) Reset

func (x *Prepare) Reset()

func (*Prepare) String

func (x *Prepare) String() string

type Proposal

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

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetHeader

func (x *Proposal) GetHeader() []byte

func (*Proposal) GetMetadata

func (x *Proposal) GetMetadata() []byte

func (*Proposal) GetPayload

func (x *Proposal) GetPayload() []byte

func (*Proposal) GetVerificationSequence

func (x *Proposal) GetVerificationSequence() uint64

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

func (x *Proposal) ProtoReflect() protoreflect.Message

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

type ProposedRecord

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

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

Deprecated: Use ProposedRecord.ProtoReflect.Descriptor instead.

func (*ProposedRecord) GetPrePrepare

func (x *ProposedRecord) GetPrePrepare() *PrePrepare

func (*ProposedRecord) GetPrepare

func (x *ProposedRecord) GetPrepare() *Prepare

func (*ProposedRecord) ProtoMessage

func (*ProposedRecord) ProtoMessage()

func (*ProposedRecord) ProtoReflect

func (x *ProposedRecord) ProtoReflect() protoreflect.Message

func (*ProposedRecord) Reset

func (x *ProposedRecord) Reset()

func (*ProposedRecord) String

func (x *ProposedRecord) String() string

type SavedMessage

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

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

Deprecated: Use SavedMessage.ProtoReflect.Descriptor instead.

func (*SavedMessage) GetCommit

func (x *SavedMessage) GetCommit() *Message

func (*SavedMessage) GetContent

func (m *SavedMessage) GetContent() isSavedMessage_Content

func (*SavedMessage) GetNewView

func (x *SavedMessage) GetNewView() *ViewMetadata

func (*SavedMessage) GetProposedRecord

func (x *SavedMessage) GetProposedRecord() *ProposedRecord

func (*SavedMessage) GetViewChange

func (x *SavedMessage) GetViewChange() *ViewChange

func (*SavedMessage) ProtoMessage

func (*SavedMessage) ProtoMessage()

func (*SavedMessage) ProtoReflect

func (x *SavedMessage) ProtoReflect() protoreflect.Message

func (*SavedMessage) Reset

func (x *SavedMessage) Reset()

func (*SavedMessage) String

func (x *SavedMessage) String() string

type SavedMessage_Commit

type SavedMessage_Commit struct {
    Commit *Message `protobuf:"bytes,2,opt,name=commit,proto3,oneof"`
}

type SavedMessage_NewView

type SavedMessage_NewView struct {
    NewView *ViewMetadata `protobuf:"bytes,3,opt,name=new_view,json=newView,proto3,oneof"`
}

type SavedMessage_ProposedRecord

type SavedMessage_ProposedRecord struct {
    ProposedRecord *ProposedRecord `protobuf:"bytes,1,opt,name=proposed_record,json=proposedRecord,proto3,oneof"`
}

type SavedMessage_ViewChange

type SavedMessage_ViewChange struct {
    ViewChange *ViewChange `protobuf:"bytes,4,opt,name=view_change,json=viewChange,proto3,oneof"`
}

type Signature

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

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetMsg

func (x *Signature) GetMsg() []byte

func (*Signature) GetSigner

func (x *Signature) GetSigner() uint64

func (*Signature) GetValue

func (x *Signature) GetValue() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type SignedViewData

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

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

Deprecated: Use SignedViewData.ProtoReflect.Descriptor instead.

func (*SignedViewData) GetRawViewData

func (x *SignedViewData) GetRawViewData() []byte

func (*SignedViewData) GetSignature

func (x *SignedViewData) GetSignature() []byte

func (*SignedViewData) GetSigner

func (x *SignedViewData) GetSigner() uint64

func (*SignedViewData) ProtoMessage

func (*SignedViewData) ProtoMessage()

func (*SignedViewData) ProtoReflect

func (x *SignedViewData) ProtoReflect() protoreflect.Message

func (*SignedViewData) Reset

func (x *SignedViewData) Reset()

func (*SignedViewData) String

func (x *SignedViewData) String() string

type StateTransferRequest

type StateTransferRequest struct {
    // contains filtered or unexported fields
}

func (*StateTransferRequest) Descriptor

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

Deprecated: Use StateTransferRequest.ProtoReflect.Descriptor instead.

func (*StateTransferRequest) ProtoMessage

func (*StateTransferRequest) ProtoMessage()

func (*StateTransferRequest) ProtoReflect

func (x *StateTransferRequest) ProtoReflect() protoreflect.Message

func (*StateTransferRequest) Reset

func (x *StateTransferRequest) Reset()

func (*StateTransferRequest) String

func (x *StateTransferRequest) String() string

type StateTransferResponse

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

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

Deprecated: Use StateTransferResponse.ProtoReflect.Descriptor instead.

func (*StateTransferResponse) GetSequence

func (x *StateTransferResponse) GetSequence() uint64

func (*StateTransferResponse) GetViewNum

func (x *StateTransferResponse) GetViewNum() uint64

func (*StateTransferResponse) ProtoMessage

func (*StateTransferResponse) ProtoMessage()

func (*StateTransferResponse) ProtoReflect

func (x *StateTransferResponse) ProtoReflect() protoreflect.Message

func (*StateTransferResponse) Reset

func (x *StateTransferResponse) Reset()

func (*StateTransferResponse) String

func (x *StateTransferResponse) String() string

type ViewChange

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

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

Deprecated: Use ViewChange.ProtoReflect.Descriptor instead.

func (*ViewChange) GetNextView

func (x *ViewChange) GetNextView() uint64

func (*ViewChange) GetReason

func (x *ViewChange) GetReason() string

func (*ViewChange) ProtoMessage

func (*ViewChange) ProtoMessage()

func (*ViewChange) ProtoReflect

func (x *ViewChange) ProtoReflect() protoreflect.Message

func (*ViewChange) Reset

func (x *ViewChange) Reset()

func (*ViewChange) String

func (x *ViewChange) String() string

type ViewData

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

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

Deprecated: Use ViewData.ProtoReflect.Descriptor instead.

func (*ViewData) GetInFlightPrepared

func (x *ViewData) GetInFlightPrepared() bool

func (*ViewData) GetInFlightProposal

func (x *ViewData) GetInFlightProposal() *Proposal

func (*ViewData) GetLastDecision

func (x *ViewData) GetLastDecision() *Proposal

func (*ViewData) GetLastDecisionSignatures

func (x *ViewData) GetLastDecisionSignatures() []*Signature

func (*ViewData) GetNextView

func (x *ViewData) GetNextView() uint64

func (*ViewData) ProtoMessage

func (*ViewData) ProtoMessage()

func (*ViewData) ProtoReflect

func (x *ViewData) ProtoReflect() protoreflect.Message

func (*ViewData) Reset

func (x *ViewData) Reset()

func (*ViewData) String

func (x *ViewData) String() string

type ViewMetadata

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

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

Deprecated: Use ViewMetadata.ProtoReflect.Descriptor instead.

func (*ViewMetadata) GetDecisionsInView

func (x *ViewMetadata) GetDecisionsInView() uint64

func (*ViewMetadata) GetLatestSequence

func (x *ViewMetadata) GetLatestSequence() uint64

func (*ViewMetadata) GetViewId

func (x *ViewMetadata) GetViewId() uint64

func (*ViewMetadata) ProtoMessage

func (*ViewMetadata) ProtoMessage()

func (*ViewMetadata) ProtoReflect

func (x *ViewMetadata) ProtoReflect() protoreflect.Message

func (*ViewMetadata) Reset

func (x *ViewMetadata) Reset()

func (*ViewMetadata) String

func (x *ViewMetadata) String() string