Documentation ¶
Index ¶
- Variables
- type RaftMessage
- func (*RaftMessage) Descriptor() ([]byte, []int)
- func (m *RaftMessage) GetData() []byte
- func (m *RaftMessage) GetFromId() uint64
- func (m *RaftMessage) GetType() RaftMessage_Type
- func (m *RaftMessage) Marshal() (dAtA []byte, err error)
- func (m *RaftMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *RaftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RaftMessage) ProtoMessage()
- func (m *RaftMessage) Reset()
- func (m *RaftMessage) Size() (n int)
- func (m *RaftMessage) String() string
- func (m *RaftMessage) Unmarshal(dAtA []byte) error
- func (m *RaftMessage) XXX_DiscardUnknown()
- func (m *RaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RaftMessage) XXX_Merge(src proto.Message)
- func (m *RaftMessage) XXX_Size() int
- func (m *RaftMessage) XXX_Unmarshal(b []byte) error
- type RaftMessage_Type
- type Ready
- func (*Ready) Descriptor() ([]byte, []int)
- func (m *Ready) GetHeight() uint64
- func (m *Ready) Marshal() (dAtA []byte, err error)
- func (m *Ready) MarshalTo(dAtA []byte) (int, error)
- func (m *Ready) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ready) ProtoMessage()
- func (m *Ready) Reset()
- func (m *Ready) Size() (n int)
- func (m *Ready) String() string
- func (m *Ready) Unmarshal(dAtA []byte) error
- func (m *Ready) XXX_DiscardUnknown()
- func (m *Ready) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ready) XXX_Merge(src proto.Message)
- func (m *Ready) XXX_Size() int
- func (m *Ready) XXX_Unmarshal(b []byte) error
- type RequestBatch
- func (*RequestBatch) Descriptor() ([]byte, []int)
- func (m *RequestBatch) GetDigest() string
- func (m *RequestBatch) GetHeight() uint64
- func (m *RequestBatch) Marshal() (dAtA []byte, err error)
- func (m *RequestBatch) MarshalTo(dAtA []byte) (int, error)
- func (m *RequestBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RequestBatch) ProtoMessage()
- func (m *RequestBatch) Reset()
- func (m *RequestBatch) Size() (n int)
- func (m *RequestBatch) String() string
- func (m *RequestBatch) Unmarshal(dAtA []byte) error
- func (m *RequestBatch) XXX_DiscardUnknown()
- func (m *RequestBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestBatch) XXX_Merge(src proto.Message)
- func (m *RequestBatch) XXX_Size() int
- func (m *RequestBatch) XXX_Unmarshal(b []byte) error
- type TxSlice
- func (*TxSlice) Descriptor() ([]byte, []int)
- func (m *TxSlice) Marshal() (dAtA []byte, err error)
- func (m *TxSlice) MarshalTo(dAtA []byte) (int, error)
- func (m *TxSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxSlice) ProtoMessage()
- func (m *TxSlice) Reset()
- func (m *TxSlice) Size() (n int)
- func (m *TxSlice) String() string
- func (m *TxSlice) Unmarshal(dAtA []byte) error
- func (m *TxSlice) XXX_DiscardUnknown()
- func (m *TxSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxSlice) XXX_Merge(src proto.Message)
- func (m *TxSlice) XXX_Size() int
- func (m *TxSlice) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") )
View Source
var RaftMessage_Type_name = map[int32]string{
0: "CONSENSUS",
1: "BROADCAST_TX",
}
View Source
var RaftMessage_Type_value = map[string]int32{
"CONSENSUS": 0,
"BROADCAST_TX": 1,
}
Functions ¶
This section is empty.
Types ¶
type RaftMessage ¶
type RaftMessage struct { Type RaftMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=proto.RaftMessage_Type" json:"type,omitempty"` FromId uint64 `protobuf:"varint,2,opt,name=fromId,proto3" json:"fromId,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
func (*RaftMessage) Descriptor ¶
func (*RaftMessage) Descriptor() ([]byte, []int)
func (*RaftMessage) GetData ¶
func (m *RaftMessage) GetData() []byte
func (*RaftMessage) GetFromId ¶
func (m *RaftMessage) GetFromId() uint64
func (*RaftMessage) GetType ¶
func (m *RaftMessage) GetType() RaftMessage_Type
func (*RaftMessage) Marshal ¶
func (m *RaftMessage) Marshal() (dAtA []byte, err error)
func (*RaftMessage) MarshalToSizedBuffer ¶
func (m *RaftMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RaftMessage) ProtoMessage ¶
func (*RaftMessage) ProtoMessage()
func (*RaftMessage) Reset ¶
func (m *RaftMessage) Reset()
func (*RaftMessage) Size ¶
func (m *RaftMessage) Size() (n int)
func (*RaftMessage) String ¶
func (m *RaftMessage) String() string
func (*RaftMessage) Unmarshal ¶
func (m *RaftMessage) Unmarshal(dAtA []byte) error
func (*RaftMessage) XXX_DiscardUnknown ¶
func (m *RaftMessage) XXX_DiscardUnknown()
func (*RaftMessage) XXX_Marshal ¶
func (m *RaftMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RaftMessage) XXX_Merge ¶
func (m *RaftMessage) XXX_Merge(src proto.Message)
func (*RaftMessage) XXX_Size ¶
func (m *RaftMessage) XXX_Size() int
func (*RaftMessage) XXX_Unmarshal ¶
func (m *RaftMessage) XXX_Unmarshal(b []byte) error
type RaftMessage_Type ¶
type RaftMessage_Type int32
const ( RaftMessage_CONSENSUS RaftMessage_Type = 0 RaftMessage_BROADCAST_TX RaftMessage_Type = 1 )
func (RaftMessage_Type) EnumDescriptor ¶
func (RaftMessage_Type) EnumDescriptor() ([]byte, []int)
func (RaftMessage_Type) String ¶
func (x RaftMessage_Type) String() string
type Ready ¶
type Ready struct { TxHashes []github_com_meshplus_bitxhub_kit_types.Hash `protobuf:"bytes,1,rep,name=txHashes,proto3,customtype=github.com/meshplus/bitxhub-kit/types.Hash" json:"txHashes,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` }
func (*Ready) Descriptor ¶
func (*Ready) ProtoMessage ¶
func (*Ready) ProtoMessage()
func (*Ready) XXX_DiscardUnknown ¶
func (m *Ready) XXX_DiscardUnknown()
func (*Ready) XXX_Marshal ¶
func (*Ready) XXX_Unmarshal ¶
type RequestBatch ¶ added in v1.4.0
type RequestBatch struct { Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` TxList *github_com_meshplus_bitxhub_model_pb.Transactions `` /* 126-byte string literal not displayed */ Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` }
func (*RequestBatch) Descriptor ¶ added in v1.4.0
func (*RequestBatch) Descriptor() ([]byte, []int)
func (*RequestBatch) GetDigest ¶ added in v1.4.0
func (m *RequestBatch) GetDigest() string
func (*RequestBatch) GetHeight ¶ added in v1.4.0
func (m *RequestBatch) GetHeight() uint64
func (*RequestBatch) Marshal ¶ added in v1.4.0
func (m *RequestBatch) Marshal() (dAtA []byte, err error)
func (*RequestBatch) MarshalTo ¶ added in v1.4.0
func (m *RequestBatch) MarshalTo(dAtA []byte) (int, error)
func (*RequestBatch) MarshalToSizedBuffer ¶ added in v1.8.0
func (m *RequestBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestBatch) ProtoMessage ¶ added in v1.4.0
func (*RequestBatch) ProtoMessage()
func (*RequestBatch) Reset ¶ added in v1.4.0
func (m *RequestBatch) Reset()
func (*RequestBatch) Size ¶ added in v1.4.0
func (m *RequestBatch) Size() (n int)
func (*RequestBatch) String ¶ added in v1.4.0
func (m *RequestBatch) String() string
func (*RequestBatch) Unmarshal ¶ added in v1.4.0
func (m *RequestBatch) Unmarshal(dAtA []byte) error
func (*RequestBatch) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *RequestBatch) XXX_DiscardUnknown()
func (*RequestBatch) XXX_Marshal ¶ added in v1.4.0
func (m *RequestBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestBatch) XXX_Merge ¶ added in v1.4.0
func (m *RequestBatch) XXX_Merge(src proto.Message)
func (*RequestBatch) XXX_Size ¶ added in v1.4.0
func (m *RequestBatch) XXX_Size() int
func (*RequestBatch) XXX_Unmarshal ¶ added in v1.4.0
func (m *RequestBatch) XXX_Unmarshal(b []byte) error
type TxSlice ¶ added in v1.4.0
type TxSlice struct {
TxList []github_com_meshplus_bitxhub_model_pb.Transaction `protobuf:"bytes,1,rep,name=TxList,proto3,customtype=github.com/meshplus/bitxhub-model/pb.Transaction" json:"TxList,omitempty"`
}
func (*TxSlice) Descriptor ¶ added in v1.4.0
func (*TxSlice) MarshalToSizedBuffer ¶ added in v1.8.0
func (*TxSlice) ProtoMessage ¶ added in v1.4.0
func (*TxSlice) ProtoMessage()
func (*TxSlice) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *TxSlice) XXX_DiscardUnknown()
func (*TxSlice) XXX_Marshal ¶ added in v1.4.0
func (*TxSlice) XXX_Unmarshal ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.