Documentation ¶
Index ¶
- Variables
- type BlockSync
- func (*BlockSync) Descriptor() ([]byte, []int)
- func (m *BlockSync) GetEnd() uint64
- func (m *BlockSync) GetStart() uint64
- func (*BlockSync) ProtoMessage()
- func (m *BlockSync) Reset()
- func (m *BlockSync) String() string
- func (m *BlockSync) XXX_DiscardUnknown()
- func (m *BlockSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockSync) XXX_Merge(src proto.Message)
- func (m *BlockSync) XXX_Size() int
- func (m *BlockSync) XXX_Unmarshal(b []byte) error
- type BroadcastMsg
- func (*BroadcastMsg) Descriptor() ([]byte, []int)
- func (m *BroadcastMsg) GetChainId() uint32
- func (m *BroadcastMsg) GetMsgBody() []byte
- func (m *BroadcastMsg) GetMsgType() MessageType
- func (m *BroadcastMsg) GetPeerId() string
- func (m *BroadcastMsg) GetTimestamp() *timestamp.Timestamp
- func (*BroadcastMsg) ProtoMessage()
- func (m *BroadcastMsg) Reset()
- func (m *BroadcastMsg) String() string
- func (m *BroadcastMsg) XXX_DiscardUnknown()
- func (m *BroadcastMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BroadcastMsg) XXX_Merge(src proto.Message)
- func (m *BroadcastMsg) XXX_Size() int
- func (m *BroadcastMsg) XXX_Unmarshal(b []byte) error
- type Consensus
- func (*Consensus) Descriptor() ([]byte, []int)
- func (m *Consensus) GetData() []byte
- func (m *Consensus) GetHeight() uint64
- func (m *Consensus) GetRound() uint32
- func (m *Consensus) GetTimestamp() *timestamp.Timestamp
- func (m *Consensus) GetType() Consensus_ConsensusMessageType
- func (*Consensus) ProtoMessage()
- func (m *Consensus) Reset()
- func (m *Consensus) String() string
- func (m *Consensus) XXX_DiscardUnknown()
- func (m *Consensus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Consensus) XXX_Merge(src proto.Message)
- func (m *Consensus) XXX_Size() int
- func (m *Consensus) XXX_Unmarshal(b []byte) error
- type Consensus_ConsensusMessageType
- type MessageType
- type UnicastMsg
- func (*UnicastMsg) Descriptor() ([]byte, []int)
- func (m *UnicastMsg) GetAddr() string
- func (m *UnicastMsg) GetChainId() uint32
- func (m *UnicastMsg) GetMsgBody() []byte
- func (m *UnicastMsg) GetMsgType() MessageType
- func (m *UnicastMsg) GetPeerId() string
- func (m *UnicastMsg) GetTimestamp() *timestamp.Timestamp
- func (*UnicastMsg) ProtoMessage()
- func (m *UnicastMsg) Reset()
- func (m *UnicastMsg) String() string
- func (m *UnicastMsg) XXX_DiscardUnknown()
- func (m *UnicastMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnicastMsg) XXX_Merge(src proto.Message)
- func (m *UnicastMsg) XXX_Size() int
- func (m *UnicastMsg) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Consensus_ConsensusMessageType_name = map[int32]string{
0: "PROPOSAL",
1: "ENDORSEMENT",
}
View Source
var Consensus_ConsensusMessageType_value = map[string]int32{
"PROPOSAL": 0,
"ENDORSEMENT": 1,
}
View Source
var MessageType_name = map[int32]string{
0: "UNKNOWN",
1: "ACTION",
2: "BLOCK",
3: "CONSENSUS",
4: "BLOCK_REQUEST",
10001: "TEST",
}
View Source
var MessageType_value = map[string]int32{
"UNKNOWN": 0,
"ACTION": 1,
"BLOCK": 2,
"CONSENSUS": 3,
"BLOCK_REQUEST": 4,
"TEST": 10001,
}
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockSync) Descriptor ¶
func (*BlockSync) ProtoMessage ¶
func (*BlockSync) ProtoMessage()
func (*BlockSync) XXX_DiscardUnknown ¶
func (m *BlockSync) XXX_DiscardUnknown()
func (*BlockSync) XXX_Marshal ¶
func (*BlockSync) XXX_Unmarshal ¶
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 *timestamp.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BroadcastMsg) Descriptor ¶
func (*BroadcastMsg) Descriptor() ([]byte, []int)
func (*BroadcastMsg) GetChainId ¶
func (m *BroadcastMsg) GetChainId() uint32
func (*BroadcastMsg) GetMsgBody ¶
func (m *BroadcastMsg) GetMsgBody() []byte
func (*BroadcastMsg) GetMsgType ¶
func (m *BroadcastMsg) GetMsgType() MessageType
func (*BroadcastMsg) GetPeerId ¶
func (m *BroadcastMsg) GetPeerId() string
func (*BroadcastMsg) GetTimestamp ¶
func (m *BroadcastMsg) GetTimestamp() *timestamp.Timestamp
func (*BroadcastMsg) ProtoMessage ¶
func (*BroadcastMsg) ProtoMessage()
func (*BroadcastMsg) Reset ¶
func (m *BroadcastMsg) Reset()
func (*BroadcastMsg) String ¶
func (m *BroadcastMsg) String() string
func (*BroadcastMsg) XXX_DiscardUnknown ¶
func (m *BroadcastMsg) XXX_DiscardUnknown()
func (*BroadcastMsg) XXX_Marshal ¶
func (m *BroadcastMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BroadcastMsg) XXX_Merge ¶
func (m *BroadcastMsg) XXX_Merge(src proto.Message)
func (*BroadcastMsg) XXX_Size ¶
func (m *BroadcastMsg) XXX_Size() int
func (*BroadcastMsg) XXX_Unmarshal ¶
func (m *BroadcastMsg) XXX_Unmarshal(b []byte) error
type Consensus ¶
type Consensus struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Round uint32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Type Consensus_ConsensusMessageType `protobuf:"varint,3,opt,name=type,proto3,enum=iotexrpc.Consensus_ConsensusMessageType" json:"type,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Consensus) Descriptor ¶
func (*Consensus) GetTimestamp ¶
func (*Consensus) GetType ¶
func (m *Consensus) GetType() Consensus_ConsensusMessageType
func (*Consensus) ProtoMessage ¶
func (*Consensus) ProtoMessage()
func (*Consensus) XXX_DiscardUnknown ¶
func (m *Consensus) XXX_DiscardUnknown()
func (*Consensus) XXX_Marshal ¶
func (*Consensus) XXX_Unmarshal ¶
type Consensus_ConsensusMessageType ¶
type Consensus_ConsensusMessageType int32
const ( Consensus_PROPOSAL Consensus_ConsensusMessageType = 0 Consensus_ENDORSEMENT Consensus_ConsensusMessageType = 1 )
func (Consensus_ConsensusMessageType) EnumDescriptor ¶
func (Consensus_ConsensusMessageType) EnumDescriptor() ([]byte, []int)
func (Consensus_ConsensusMessageType) String ¶
func (x Consensus_ConsensusMessageType) 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_TEST MessageType = 10001 )
func (MessageType) EnumDescriptor ¶
func (MessageType) EnumDescriptor() ([]byte, []int)
func (MessageType) String ¶
func (x MessageType) String() string
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 *timestamp.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnicastMsg) Descriptor ¶
func (*UnicastMsg) Descriptor() ([]byte, []int)
func (*UnicastMsg) GetAddr ¶
func (m *UnicastMsg) GetAddr() string
func (*UnicastMsg) GetChainId ¶
func (m *UnicastMsg) GetChainId() uint32
func (*UnicastMsg) GetMsgBody ¶
func (m *UnicastMsg) GetMsgBody() []byte
func (*UnicastMsg) GetMsgType ¶
func (m *UnicastMsg) GetMsgType() MessageType
func (*UnicastMsg) GetPeerId ¶
func (m *UnicastMsg) GetPeerId() string
func (*UnicastMsg) GetTimestamp ¶
func (m *UnicastMsg) GetTimestamp() *timestamp.Timestamp
func (*UnicastMsg) ProtoMessage ¶
func (*UnicastMsg) ProtoMessage()
func (*UnicastMsg) Reset ¶
func (m *UnicastMsg) Reset()
func (*UnicastMsg) String ¶
func (m *UnicastMsg) String() string
func (*UnicastMsg) XXX_DiscardUnknown ¶
func (m *UnicastMsg) XXX_DiscardUnknown()
func (*UnicastMsg) XXX_Marshal ¶
func (m *UnicastMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnicastMsg) XXX_Merge ¶
func (m *UnicastMsg) XXX_Merge(src proto.Message)
func (*UnicastMsg) XXX_Size ¶
func (m *UnicastMsg) XXX_Size() int
func (*UnicastMsg) XXX_Unmarshal ¶
func (m *UnicastMsg) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.