iotexrpc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MessageType_name = map[int32]string{
		0:     "UNKNOWN",
		1:     "ACTION",
		2:     "BLOCK",
		3:     "CONSENSUS",
		4:     "BLOCK_REQUEST",
		5:     "NODE_INFO_REQUEST",
		6:     "NODE_INFO",
		7:     "ACTIONS",
		10001: "TEST",
	}
	MessageType_value = map[string]int32{
		"UNKNOWN":           0,
		"ACTION":            1,
		"BLOCK":             2,
		"CONSENSUS":         3,
		"BLOCK_REQUEST":     4,
		"NODE_INFO_REQUEST": 5,
		"NODE_INFO":         6,
		"ACTIONS":           7,
		"TEST":              10001,
	}
)

Enum value maps for MessageType.

View Source
var File_proto_rpc_rpc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BlockSync

type BlockSync struct {
	Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	End   uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockSync) Descriptor deprecated

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

Deprecated: Use BlockSync.ProtoReflect.Descriptor instead.

func (*BlockSync) GetEnd

func (x *BlockSync) GetEnd() uint64

func (*BlockSync) GetStart

func (x *BlockSync) GetStart() uint64

func (*BlockSync) ProtoMessage

func (*BlockSync) ProtoMessage()

func (*BlockSync) ProtoReflect added in v0.4.0

func (x *BlockSync) ProtoReflect() protoreflect.Message

func (*BlockSync) Reset

func (x *BlockSync) Reset()

func (*BlockSync) String

func (x *BlockSync) String() string

type BroadcastMsg

type BroadcastMsg struct {
	ChainId   uint32                 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	MsgType   MessageType            `protobuf:"varint,2,opt,name=msg_type,json=msgType,proto3,enum=iotexrpc.MessageType" json:"msg_type,omitempty"`
	MsgBody   []byte                 `protobuf:"bytes,3,opt,name=msg_body,json=msgBody,proto3" json:"msg_body,omitempty"`
	PeerId    string                 `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*BroadcastMsg) Descriptor deprecated

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

Deprecated: Use BroadcastMsg.ProtoReflect.Descriptor instead.

func (*BroadcastMsg) GetChainId

func (x *BroadcastMsg) GetChainId() uint32

func (*BroadcastMsg) GetMsgBody

func (x *BroadcastMsg) GetMsgBody() []byte

func (*BroadcastMsg) GetMsgType

func (x *BroadcastMsg) GetMsgType() MessageType

func (*BroadcastMsg) GetPeerId

func (x *BroadcastMsg) GetPeerId() string

func (*BroadcastMsg) GetTimestamp

func (x *BroadcastMsg) GetTimestamp() *timestamppb.Timestamp

func (*BroadcastMsg) ProtoMessage

func (*BroadcastMsg) ProtoMessage()

func (*BroadcastMsg) ProtoReflect added in v0.4.0

func (x *BroadcastMsg) ProtoReflect() protoreflect.Message

func (*BroadcastMsg) Reset

func (x *BroadcastMsg) Reset()

func (*BroadcastMsg) String

func (x *BroadcastMsg) String() string

type MessageType

type MessageType int32
const (
	MessageType_UNKNOWN           MessageType = 0
	MessageType_ACTION            MessageType = 1
	MessageType_BLOCK             MessageType = 2
	MessageType_CONSENSUS         MessageType = 3
	MessageType_BLOCK_REQUEST     MessageType = 4
	MessageType_NODE_INFO_REQUEST MessageType = 5
	MessageType_NODE_INFO         MessageType = 6
	MessageType_ACTIONS           MessageType = 7
	MessageType_TEST              MessageType = 10001
)

func (MessageType) Descriptor added in v0.4.0

func (MessageType) Enum added in v0.4.0

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor deprecated

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

Deprecated: Use MessageType.Descriptor instead.

func (MessageType) Number added in v0.4.0

func (x MessageType) Number() protoreflect.EnumNumber

func (MessageType) String

func (x MessageType) String() string

func (MessageType) Type added in v0.4.0

type UnicastMsg

type UnicastMsg struct {
	ChainId   uint32                 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Addr      string                 `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	MsgType   MessageType            `protobuf:"varint,3,opt,name=msg_type,json=msgType,proto3,enum=iotexrpc.MessageType" json:"msg_type,omitempty"`
	MsgBody   []byte                 `protobuf:"bytes,4,opt,name=msg_body,json=msgBody,proto3" json:"msg_body,omitempty"`
	PeerId    string                 `protobuf:"bytes,5,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*UnicastMsg) Descriptor deprecated

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

Deprecated: Use UnicastMsg.ProtoReflect.Descriptor instead.

func (*UnicastMsg) GetAddr

func (x *UnicastMsg) GetAddr() string

func (*UnicastMsg) GetChainId

func (x *UnicastMsg) GetChainId() uint32

func (*UnicastMsg) GetMsgBody

func (x *UnicastMsg) GetMsgBody() []byte

func (*UnicastMsg) GetMsgType

func (x *UnicastMsg) GetMsgType() MessageType

func (*UnicastMsg) GetPeerId

func (x *UnicastMsg) GetPeerId() string

func (*UnicastMsg) GetTimestamp

func (x *UnicastMsg) GetTimestamp() *timestamppb.Timestamp

func (*UnicastMsg) ProtoMessage

func (*UnicastMsg) ProtoMessage()

func (*UnicastMsg) ProtoReflect added in v0.4.0

func (x *UnicastMsg) ProtoReflect() protoreflect.Message

func (*UnicastMsg) Reset

func (x *UnicastMsg) Reset()

func (*UnicastMsg) String

func (x *UnicastMsg) String() string

Jump to

Keyboard shortcuts

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