mempool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: LGPL-3.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mempool is a generated protocol buffer package.

It is generated from these files:

message.proto

It has these top-level messages:

TxMessage
MempoolMessage

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")
)
View Source
var MsgType_name = map[int32]string{
	0: "None",
	1: "Tx",
}
View Source
var MsgType_value = map[string]int32{
	"None": 0,
	"Tx":   1,
}

Functions

func MarshalDataToMpMsg

func MarshalDataToMpMsg(msg proto.Message) []byte

Types

type MempoolMessage

type MempoolMessage struct {
	Type MsgType `protobuf:"varint,1,opt,name=Type,proto3,enum=mempool.MsgType" json:"Type,omitempty"`
	Data []byte  `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
}

func (*MempoolMessage) Descriptor

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

func (*MempoolMessage) GetData

func (m *MempoolMessage) GetData() []byte

func (*MempoolMessage) GetType

func (m *MempoolMessage) GetType() MsgType

func (*MempoolMessage) Marshal

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

func (*MempoolMessage) MarshalTo

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

func (*MempoolMessage) ProtoMessage

func (*MempoolMessage) ProtoMessage()

func (*MempoolMessage) Reset

func (m *MempoolMessage) Reset()

func (*MempoolMessage) Size

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

func (*MempoolMessage) String

func (m *MempoolMessage) String() string

func (*MempoolMessage) Unmarshal

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

type MempoolMsgItfc

type MempoolMsgItfc proto.Message

func UnmarshalMpMsg

func UnmarshalMpMsg(bz []byte) (MempoolMsgItfc, error)

type MsgType

type MsgType int32
const (
	MsgType_None MsgType = 0
	MsgType_Tx   MsgType = 1
)

func GetMessageType

func GetMessageType(msg proto.Message) MsgType

func (MsgType) EnumDescriptor

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

func (MsgType) String

func (x MsgType) String() string

type TxMessage

type TxMessage struct {
	Tx []byte `protobuf:"bytes,1,opt,name=Tx,proto3" json:"Tx,omitempty"`
}

func (*TxMessage) CString

func (m *TxMessage) CString() string

func (*TxMessage) Descriptor

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

func (*TxMessage) GetTx

func (m *TxMessage) GetTx() []byte

func (*TxMessage) Marshal

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

func (*TxMessage) MarshalTo

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

func (*TxMessage) ProtoMessage

func (*TxMessage) ProtoMessage()

func (*TxMessage) Reset

func (m *TxMessage) Reset()

func (*TxMessage) Size

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

func (*TxMessage) String

func (m *TxMessage) String() string

func (*TxMessage) Unmarshal

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

Jump to

Keyboard shortcuts

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