Documentation ¶
Index ¶
- Variables
- func ReplicaIDEquals(a, b []peerpb.PeerID) bool
- func WrapMessageInner(msg proto.Message) isLinHybsterMessage_Type
- type Index
- type InstanceState
- func (*InstanceState) Descriptor() ([]byte, []int)
- func (m *InstanceState) GetCommand() *commandpb.Command
- func (m *InstanceState) GetCommandHash() []byte
- func (m *InstanceState) GetIndex() Index
- func (m *InstanceState) GetStatus() InstanceState_Status
- func (m *InstanceState) GetView() View
- func (m *InstanceState) IsCommitted() bool
- func (m *InstanceState) IsPrepared() bool
- func (m *InstanceState) Marshal() (dAtA []byte, err error)
- func (m *InstanceState) MarshalTo(dAtA []byte) (int, error)
- func (m *InstanceState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InstanceState) ProtoMessage()
- func (m *InstanceState) Reset()
- func (m *InstanceState) Size() (n int)
- func (m *InstanceState) String() string
- func (m *InstanceState) Unmarshal(dAtA []byte) error
- func (m *InstanceState) XXX_DiscardUnknown()
- func (m *InstanceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstanceState) XXX_Merge(src proto.Message)
- func (m *InstanceState) XXX_Size() int
- func (m *InstanceState) XXX_Unmarshal(b []byte) error
- type InstanceState_Status
- type LinHybsterMessage
- func (*LinHybsterMessage) Descriptor() ([]byte, []int)
- func (m *LinHybsterMessage) GetNormal() *NormalMessage
- func (m *LinHybsterMessage) GetResult() *ResultMessage
- func (m *LinHybsterMessage) GetType() isLinHybsterMessage_Type
- func (m *LinHybsterMessage) Marshal() (dAtA []byte, err error)
- func (m *LinHybsterMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *LinHybsterMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LinHybsterMessage) ProtoMessage()
- func (m *LinHybsterMessage) Reset()
- func (m *LinHybsterMessage) Size() (n int)
- func (m *LinHybsterMessage) String() string
- func (m *LinHybsterMessage) Unmarshal(dAtA []byte) error
- func (m *LinHybsterMessage) XXX_DiscardUnknown()
- func (m *LinHybsterMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LinHybsterMessage) XXX_Merge(src proto.Message)
- func (*LinHybsterMessage) XXX_OneofWrappers() []interface{}
- func (m *LinHybsterMessage) XXX_Size() int
- func (m *LinHybsterMessage) XXX_Unmarshal(b []byte) error
- type LinHybsterMessage_Normal
- type LinHybsterMessage_Result
- type NormalMessage
- func (*NormalMessage) Descriptor() ([]byte, []int)
- func (m *NormalMessage) Equals(other *NormalMessage) bool
- func (m *NormalMessage) GetCommand() *commandpb.Command
- func (m *NormalMessage) GetCommandHash() []byte
- func (m *NormalMessage) GetIndex() Index
- func (m *NormalMessage) GetType() NormalMessage_Type
- func (m *NormalMessage) GetView() View
- func (m *NormalMessage) Marshal() (dAtA []byte, err error)
- func (m *NormalMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *NormalMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NormalMessage) ProtoMessage()
- func (m *NormalMessage) Reset()
- func (m *NormalMessage) Size() (n int)
- func (m *NormalMessage) String() string
- func (m *NormalMessage) Unmarshal(dAtA []byte) error
- func (m *NormalMessage) XXX_DiscardUnknown()
- func (m *NormalMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NormalMessage) XXX_Merge(src proto.Message)
- func (m *NormalMessage) XXX_Size() int
- func (m *NormalMessage) XXX_Unmarshal(b []byte) error
- type NormalMessage_Type
- type ResultMessage
- func (*ResultMessage) Descriptor() ([]byte, []int)
- func (m *ResultMessage) Equals(other *ResultMessage) bool
- func (m *ResultMessage) GetId() uint64
- func (m *ResultMessage) GetResult() []byte
- func (m *ResultMessage) Marshal() (dAtA []byte, err error)
- func (m *ResultMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *ResultMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResultMessage) ProtoMessage()
- func (m *ResultMessage) Reset()
- func (m *ResultMessage) Size() (n int)
- func (m *ResultMessage) String() string
- func (m *ResultMessage) Unmarshal(dAtA []byte) error
- func (m *ResultMessage) XXX_DiscardUnknown()
- func (m *ResultMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResultMessage) XXX_Merge(src proto.Message)
- func (m *ResultMessage) XXX_Size() int
- func (m *ResultMessage) XXX_Unmarshal(b []byte) error
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLinhybster = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLinhybster = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLinhybster = fmt.Errorf("proto: unexpected end of group") )
View Source
var InstanceState_Status_name = map[int32]string{
0: "None",
1: "Prepared",
2: "SignShared",
3: "Committed",
4: "StateShared",
5: "Executed",
}
View Source
var InstanceState_Status_value = map[string]int32{
"None": 0,
"Prepared": 1,
"SignShared": 2,
"Committed": 3,
"StateShared": 4,
"Executed": 5,
}
View Source
var NormalMessage_Type_name = map[int32]string{
0: "None",
1: "Prepare",
2: "SignShare",
3: "Commit",
4: "StateShare",
5: "ExecProof",
}
View Source
var NormalMessage_Type_value = map[string]int32{
"None": 0,
"Prepare": 1,
"SignShare": 2,
"Commit": 3,
"StateShare": 4,
"ExecProof": 5,
}
Functions ¶
func ReplicaIDEquals ¶
func WrapMessageInner ¶
WrapMessageInner wraps a union type of Message in a new isMessage_Type.
Types ¶
type InstanceState ¶
type InstanceState struct { View View `protobuf:"varint,1,opt,name=view,proto3,casttype=View" json:"view,omitempty"` Index Index `protobuf:"varint,2,opt,name=index,proto3,casttype=Index" json:"index,omitempty"` Status InstanceState_Status `protobuf:"varint,3,opt,name=status,proto3,enum=linhybsterpb.InstanceState_Status" json:"status,omitempty"` Command *commandpb.Command `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` CommandHash []byte `protobuf:"bytes,5,opt,name=command_hash,json=commandHash,proto3" json:"command_hash,omitempty"` }
func (*InstanceState) Descriptor ¶
func (*InstanceState) Descriptor() ([]byte, []int)
func (*InstanceState) GetCommand ¶
func (m *InstanceState) GetCommand() *commandpb.Command
func (*InstanceState) GetCommandHash ¶
func (m *InstanceState) GetCommandHash() []byte
func (*InstanceState) GetIndex ¶
func (m *InstanceState) GetIndex() Index
func (*InstanceState) GetStatus ¶
func (m *InstanceState) GetStatus() InstanceState_Status
func (*InstanceState) GetView ¶
func (m *InstanceState) GetView() View
func (*InstanceState) IsCommitted ¶
func (m *InstanceState) IsCommitted() bool
func (*InstanceState) IsPrepared ¶
func (m *InstanceState) IsPrepared() bool
func (*InstanceState) Marshal ¶
func (m *InstanceState) Marshal() (dAtA []byte, err error)
func (*InstanceState) MarshalToSizedBuffer ¶
func (m *InstanceState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InstanceState) ProtoMessage ¶
func (*InstanceState) ProtoMessage()
func (*InstanceState) Reset ¶
func (m *InstanceState) Reset()
func (*InstanceState) Size ¶
func (m *InstanceState) Size() (n int)
func (*InstanceState) String ¶
func (m *InstanceState) String() string
func (*InstanceState) Unmarshal ¶
func (m *InstanceState) Unmarshal(dAtA []byte) error
func (*InstanceState) XXX_DiscardUnknown ¶
func (m *InstanceState) XXX_DiscardUnknown()
func (*InstanceState) XXX_Marshal ¶
func (m *InstanceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstanceState) XXX_Merge ¶
func (m *InstanceState) XXX_Merge(src proto.Message)
func (*InstanceState) XXX_Size ¶
func (m *InstanceState) XXX_Size() int
func (*InstanceState) XXX_Unmarshal ¶
func (m *InstanceState) XXX_Unmarshal(b []byte) error
type InstanceState_Status ¶
type InstanceState_Status int32
const ( InstanceState_None InstanceState_Status = 0 InstanceState_Prepared InstanceState_Status = 1 InstanceState_Committed InstanceState_Status = 3 InstanceState_Executed InstanceState_Status = 5 )
func (InstanceState_Status) EnumDescriptor ¶
func (InstanceState_Status) EnumDescriptor() ([]byte, []int)
func (InstanceState_Status) String ¶
func (x InstanceState_Status) String() string
type LinHybsterMessage ¶
type LinHybsterMessage struct { // Types that are valid to be assigned to Type: // *LinHybsterMessage_Normal // *LinHybsterMessage_Result Type isLinHybsterMessage_Type `protobuf_oneof:"type"` }
func WrapLinHybsterMessage ¶
func WrapLinHybsterMessage(msg proto.Message) *LinHybsterMessage
WrapLinHybsterMessage wraps a union type of Message in a new PBFTMessage without a destination.
func (*LinHybsterMessage) Descriptor ¶
func (*LinHybsterMessage) Descriptor() ([]byte, []int)
func (*LinHybsterMessage) GetNormal ¶
func (m *LinHybsterMessage) GetNormal() *NormalMessage
func (*LinHybsterMessage) GetResult ¶
func (m *LinHybsterMessage) GetResult() *ResultMessage
func (*LinHybsterMessage) GetType ¶
func (m *LinHybsterMessage) GetType() isLinHybsterMessage_Type
func (*LinHybsterMessage) Marshal ¶
func (m *LinHybsterMessage) Marshal() (dAtA []byte, err error)
func (*LinHybsterMessage) MarshalTo ¶
func (m *LinHybsterMessage) MarshalTo(dAtA []byte) (int, error)
func (*LinHybsterMessage) MarshalToSizedBuffer ¶
func (m *LinHybsterMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LinHybsterMessage) ProtoMessage ¶
func (*LinHybsterMessage) ProtoMessage()
func (*LinHybsterMessage) Reset ¶
func (m *LinHybsterMessage) Reset()
func (*LinHybsterMessage) Size ¶
func (m *LinHybsterMessage) Size() (n int)
func (*LinHybsterMessage) String ¶
func (m *LinHybsterMessage) String() string
func (*LinHybsterMessage) Unmarshal ¶
func (m *LinHybsterMessage) Unmarshal(dAtA []byte) error
func (*LinHybsterMessage) XXX_DiscardUnknown ¶
func (m *LinHybsterMessage) XXX_DiscardUnknown()
func (*LinHybsterMessage) XXX_Marshal ¶
func (m *LinHybsterMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LinHybsterMessage) XXX_Merge ¶
func (m *LinHybsterMessage) XXX_Merge(src proto.Message)
func (*LinHybsterMessage) XXX_OneofWrappers ¶
func (*LinHybsterMessage) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*LinHybsterMessage) XXX_Size ¶
func (m *LinHybsterMessage) XXX_Size() int
func (*LinHybsterMessage) XXX_Unmarshal ¶
func (m *LinHybsterMessage) XXX_Unmarshal(b []byte) error
type LinHybsterMessage_Normal ¶
type LinHybsterMessage_Normal struct {
Normal *NormalMessage `protobuf:"bytes,1,opt,name=normal,proto3,oneof" json:"normal,omitempty"`
}
func (*LinHybsterMessage_Normal) MarshalTo ¶
func (m *LinHybsterMessage_Normal) MarshalTo(dAtA []byte) (int, error)
func (*LinHybsterMessage_Normal) MarshalToSizedBuffer ¶
func (m *LinHybsterMessage_Normal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LinHybsterMessage_Normal) Size ¶
func (m *LinHybsterMessage_Normal) Size() (n int)
type LinHybsterMessage_Result ¶
type LinHybsterMessage_Result struct {
Result *ResultMessage `protobuf:"bytes,3,opt,name=result,proto3,oneof" json:"result,omitempty"`
}
func (*LinHybsterMessage_Result) MarshalTo ¶
func (m *LinHybsterMessage_Result) MarshalTo(dAtA []byte) (int, error)
func (*LinHybsterMessage_Result) MarshalToSizedBuffer ¶
func (m *LinHybsterMessage_Result) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LinHybsterMessage_Result) Size ¶
func (m *LinHybsterMessage_Result) Size() (n int)
type NormalMessage ¶
type NormalMessage struct { View View `protobuf:"varint,1,opt,name=view,proto3,casttype=View" json:"view,omitempty"` Index Index `protobuf:"varint,2,opt,name=index,proto3,casttype=Index" json:"index,omitempty"` Type NormalMessage_Type `protobuf:"varint,3,opt,name=type,proto3,enum=linhybsterpb.NormalMessage_Type" json:"type,omitempty"` Command *commandpb.Command `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` CommandHash []byte `protobuf:"bytes,5,opt,name=command_hash,json=commandHash,proto3" json:"command_hash,omitempty"` }
func (*NormalMessage) Descriptor ¶
func (*NormalMessage) Descriptor() ([]byte, []int)
func (*NormalMessage) Equals ¶
func (m *NormalMessage) Equals(other *NormalMessage) bool
func (*NormalMessage) GetCommand ¶
func (m *NormalMessage) GetCommand() *commandpb.Command
func (*NormalMessage) GetCommandHash ¶
func (m *NormalMessage) GetCommandHash() []byte
func (*NormalMessage) GetIndex ¶
func (m *NormalMessage) GetIndex() Index
func (*NormalMessage) GetType ¶
func (m *NormalMessage) GetType() NormalMessage_Type
func (*NormalMessage) GetView ¶
func (m *NormalMessage) GetView() View
func (*NormalMessage) Marshal ¶
func (m *NormalMessage) Marshal() (dAtA []byte, err error)
func (*NormalMessage) MarshalToSizedBuffer ¶
func (m *NormalMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NormalMessage) ProtoMessage ¶
func (*NormalMessage) ProtoMessage()
func (*NormalMessage) Reset ¶
func (m *NormalMessage) Reset()
func (*NormalMessage) Size ¶
func (m *NormalMessage) Size() (n int)
func (*NormalMessage) String ¶
func (m *NormalMessage) String() string
func (*NormalMessage) Unmarshal ¶
func (m *NormalMessage) Unmarshal(dAtA []byte) error
func (*NormalMessage) XXX_DiscardUnknown ¶
func (m *NormalMessage) XXX_DiscardUnknown()
func (*NormalMessage) XXX_Marshal ¶
func (m *NormalMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NormalMessage) XXX_Merge ¶
func (m *NormalMessage) XXX_Merge(src proto.Message)
func (*NormalMessage) XXX_Size ¶
func (m *NormalMessage) XXX_Size() int
func (*NormalMessage) XXX_Unmarshal ¶
func (m *NormalMessage) XXX_Unmarshal(b []byte) error
type NormalMessage_Type ¶
type NormalMessage_Type int32
const ( NormalMessage_None NormalMessage_Type = 0 NormalMessage_Prepare NormalMessage_Type = 1 NormalMessage_Commit NormalMessage_Type = 3 NormalMessage_ExecProof NormalMessage_Type = 5 )
func (NormalMessage_Type) EnumDescriptor ¶
func (NormalMessage_Type) EnumDescriptor() ([]byte, []int)
func (NormalMessage_Type) String ¶
func (x NormalMessage_Type) String() string
type ResultMessage ¶
type ResultMessage struct { Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` }
func (*ResultMessage) Descriptor ¶
func (*ResultMessage) Descriptor() ([]byte, []int)
func (*ResultMessage) Equals ¶
func (m *ResultMessage) Equals(other *ResultMessage) bool
func (*ResultMessage) GetId ¶
func (m *ResultMessage) GetId() uint64
func (*ResultMessage) GetResult ¶
func (m *ResultMessage) GetResult() []byte
func (*ResultMessage) Marshal ¶
func (m *ResultMessage) Marshal() (dAtA []byte, err error)
func (*ResultMessage) MarshalToSizedBuffer ¶
func (m *ResultMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResultMessage) ProtoMessage ¶
func (*ResultMessage) ProtoMessage()
func (*ResultMessage) Reset ¶
func (m *ResultMessage) Reset()
func (*ResultMessage) Size ¶
func (m *ResultMessage) Size() (n int)
func (*ResultMessage) String ¶
func (m *ResultMessage) String() string
func (*ResultMessage) Unmarshal ¶
func (m *ResultMessage) Unmarshal(dAtA []byte) error
func (*ResultMessage) XXX_DiscardUnknown ¶
func (m *ResultMessage) XXX_DiscardUnknown()
func (*ResultMessage) XXX_Marshal ¶
func (m *ResultMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResultMessage) XXX_Merge ¶
func (m *ResultMessage) XXX_Merge(src proto.Message)
func (*ResultMessage) XXX_Size ¶
func (m *ResultMessage) XXX_Size() int
func (*ResultMessage) XXX_Unmarshal ¶
func (m *ResultMessage) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.