Documentation ¶
Index ¶
- Variables
- type ActionSync
- type BlockSync
- type BroadcastMsg
- func (*BroadcastMsg) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastMsg) GetChainId() uint32
- func (x *BroadcastMsg) GetMsgBody() []byte
- func (x *BroadcastMsg) GetMsgType() MessageType
- func (x *BroadcastMsg) GetPeerId() string
- func (x *BroadcastMsg) GetTimestamp() *timestamppb.Timestamp
- func (*BroadcastMsg) ProtoMessage()
- func (x *BroadcastMsg) ProtoReflect() protoreflect.Message
- func (x *BroadcastMsg) Reset()
- func (x *BroadcastMsg) String() string
- type MessageType
- func (MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageType) Enum() *MessageType
- func (MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageType) Number() protoreflect.EnumNumber
- func (x MessageType) String() string
- func (MessageType) Type() protoreflect.EnumType
- type UnicastMsg
- func (*UnicastMsg) Descriptor() ([]byte, []int)deprecated
- func (x *UnicastMsg) GetAddr() string
- func (x *UnicastMsg) GetChainId() uint32
- func (x *UnicastMsg) GetMsgBody() []byte
- func (x *UnicastMsg) GetMsgType() MessageType
- func (x *UnicastMsg) GetPeerId() string
- func (x *UnicastMsg) GetTimestamp() *timestamppb.Timestamp
- func (*UnicastMsg) ProtoMessage()
- func (x *UnicastMsg) ProtoReflect() protoreflect.Message
- func (x *UnicastMsg) Reset()
- func (x *UnicastMsg) String() string
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", 8: "ACTION_HASH", 9: "ACTION_REQUEST", 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, "ACTION_HASH": 8, "ACTION_REQUEST": 9, "TEST": 10001, } )
Enum value maps for MessageType.
View Source
var File_proto_rpc_rpc_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ActionSync ¶ added in v0.6.3
type ActionSync struct { Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` // contains filtered or unexported fields }
func (*ActionSync) Descriptor
deprecated
added in
v0.6.3
func (*ActionSync) Descriptor() ([]byte, []int)
Deprecated: Use ActionSync.ProtoReflect.Descriptor instead.
func (*ActionSync) GetHashes ¶ added in v0.6.3
func (x *ActionSync) GetHashes() [][]byte
func (*ActionSync) ProtoMessage ¶ added in v0.6.3
func (*ActionSync) ProtoMessage()
func (*ActionSync) ProtoReflect ¶ added in v0.6.3
func (x *ActionSync) ProtoReflect() protoreflect.Message
func (*ActionSync) Reset ¶ added in v0.6.3
func (x *ActionSync) Reset()
func (*ActionSync) String ¶ added in v0.6.3
func (x *ActionSync) String() string
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) ProtoMessage ¶
func (*BlockSync) ProtoMessage()
func (*BlockSync) ProtoReflect ¶ added in v0.4.0
func (x *BlockSync) ProtoReflect() protoreflect.Message
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_ACTION_HASH MessageType = 8 MessageType_ACTION_REQUEST MessageType = 9 MessageType_TEST MessageType = 10001 )
func (MessageType) Descriptor ¶ added in v0.4.0
func (MessageType) Descriptor() protoreflect.EnumDescriptor
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
func (MessageType) Type() protoreflect.EnumType
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
Click to show internal directories.
Click to hide internal directories.