proto

package
v1.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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) MarshalTo

func (m *RaftMessage) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Ready) GetHeight

func (m *Ready) GetHeight() uint64

func (*Ready) Marshal

func (m *Ready) Marshal() (dAtA []byte, err error)

func (*Ready) MarshalTo

func (m *Ready) MarshalTo(dAtA []byte) (int, error)

func (*Ready) MarshalToSizedBuffer

func (m *Ready) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ready) ProtoMessage

func (*Ready) ProtoMessage()

func (*Ready) Reset

func (m *Ready) Reset()

func (*Ready) Size

func (m *Ready) Size() (n int)

func (*Ready) String

func (m *Ready) String() string

func (*Ready) Unmarshal

func (m *Ready) Unmarshal(dAtA []byte) error

func (*Ready) XXX_DiscardUnknown

func (m *Ready) XXX_DiscardUnknown()

func (*Ready) XXX_Marshal

func (m *Ready) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ready) XXX_Merge

func (m *Ready) XXX_Merge(src proto.Message)

func (*Ready) XXX_Size

func (m *Ready) XXX_Size() int

func (*Ready) XXX_Unmarshal

func (m *Ready) XXX_Unmarshal(b []byte) error

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"`
	Timestamp int64                                              `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,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) GetTimestamp added in v1.11.1

func (m *RequestBatch) GetTimestamp() int64

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) Descriptor() ([]byte, []int)

func (*TxSlice) Marshal added in v1.4.0

func (m *TxSlice) Marshal() (dAtA []byte, err error)

func (*TxSlice) MarshalTo added in v1.4.0

func (m *TxSlice) MarshalTo(dAtA []byte) (int, error)

func (*TxSlice) MarshalToSizedBuffer added in v1.8.0

func (m *TxSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxSlice) ProtoMessage added in v1.4.0

func (*TxSlice) ProtoMessage()

func (*TxSlice) Reset added in v1.4.0

func (m *TxSlice) Reset()

func (*TxSlice) Size added in v1.4.0

func (m *TxSlice) Size() (n int)

func (*TxSlice) String added in v1.4.0

func (m *TxSlice) String() string

func (*TxSlice) Unmarshal added in v1.4.0

func (m *TxSlice) Unmarshal(dAtA []byte) error

func (*TxSlice) XXX_DiscardUnknown added in v1.4.0

func (m *TxSlice) XXX_DiscardUnknown()

func (*TxSlice) XXX_Marshal added in v1.4.0

func (m *TxSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxSlice) XXX_Merge added in v1.4.0

func (m *TxSlice) XXX_Merge(src proto.Message)

func (*TxSlice) XXX_Size added in v1.4.0

func (m *TxSlice) XXX_Size() int

func (*TxSlice) XXX_Unmarshal added in v1.4.0

func (m *TxSlice) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL