iotexrpc

package
v0.5.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*BlockSync) GetEnd

func (m *BlockSync) GetEnd() uint64

func (*BlockSync) GetStart

func (m *BlockSync) GetStart() uint64

func (*BlockSync) ProtoMessage

func (*BlockSync) ProtoMessage()

func (*BlockSync) Reset

func (m *BlockSync) Reset()

func (*BlockSync) String

func (m *BlockSync) String() string

func (*BlockSync) XXX_DiscardUnknown

func (m *BlockSync) XXX_DiscardUnknown()

func (*BlockSync) XXX_Marshal

func (m *BlockSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSync) XXX_Merge

func (m *BlockSync) XXX_Merge(src proto.Message)

func (*BlockSync) XXX_Size

func (m *BlockSync) XXX_Size() int

func (*BlockSync) XXX_Unmarshal

func (m *BlockSync) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Consensus) GetData

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

func (*Consensus) GetHeight

func (m *Consensus) GetHeight() uint64

func (*Consensus) GetRound

func (m *Consensus) GetRound() uint32

func (*Consensus) GetTimestamp

func (m *Consensus) GetTimestamp() *timestamp.Timestamp

func (*Consensus) GetType

func (*Consensus) ProtoMessage

func (*Consensus) ProtoMessage()

func (*Consensus) Reset

func (m *Consensus) Reset()

func (*Consensus) String

func (m *Consensus) String() string

func (*Consensus) XXX_DiscardUnknown

func (m *Consensus) XXX_DiscardUnknown()

func (*Consensus) XXX_Marshal

func (m *Consensus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Consensus) XXX_Merge

func (m *Consensus) XXX_Merge(src proto.Message)

func (*Consensus) XXX_Size

func (m *Consensus) XXX_Size() int

func (*Consensus) XXX_Unmarshal

func (m *Consensus) XXX_Unmarshal(b []byte) error

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

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

Jump to

Keyboard shortcuts

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