proto

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 7 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",
	2: "GET_TX",
	3: "GET_TX_ACK",
}
View Source
var RaftMessage_Type_value = map[string]int32{
	"CONSENSUS":    0,
	"BROADCAST_TX": 1,
	"GET_TX":       2,
	"GET_TX_ACK":   3,
}

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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

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
	RaftMessage_GET_TX       RaftMessage_Type = 2
	RaftMessage_GET_TX_ACK   RaftMessage_Type = 3
)

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"`
	Height               uint64                                       `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                     `json:"-"`
	XXX_unrecognized     []byte                                       `json:"-"`
	XXX_sizecache        int32                                        `json:"-"`
}

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

Jump to

Keyboard shortcuts

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