iotex-proto: github.com/iotexproject/iotex-proto/golang/iotexrpc Index | Files

package iotexrpc

import "github.com/iotexproject/iotex-proto/golang/iotexrpc"

Index

Package Files

rpc.pb.go

Variables

var MessageType_name = map[int32]string{
    0:     "UNKNOWN",
    1:     "ACTION",
    2:     "BLOCK",
    3:     "CONSENSUS",
    4:     "BLOCK_REQUEST",
    10001: "TEST",
}
var MessageType_value = map[string]int32{
    "UNKNOWN":       0,
    "ACTION":        1,
    "BLOCK":         2,
    "CONSENSUS":     3,
    "BLOCK_REQUEST": 4,
    "TEST":          10001,
}

type BlockSync Uses

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 Uses

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

func (*BlockSync) GetEnd Uses

func (m *BlockSync) GetEnd() uint64

func (*BlockSync) GetStart Uses

func (m *BlockSync) GetStart() uint64

func (*BlockSync) ProtoMessage Uses

func (*BlockSync) ProtoMessage()

func (*BlockSync) Reset Uses

func (m *BlockSync) Reset()

func (*BlockSync) String Uses

func (m *BlockSync) String() string

func (*BlockSync) XXX_DiscardUnknown Uses

func (m *BlockSync) XXX_DiscardUnknown()

func (*BlockSync) XXX_Marshal Uses

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

func (*BlockSync) XXX_Merge Uses

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

func (*BlockSync) XXX_Size Uses

func (m *BlockSync) XXX_Size() int

func (*BlockSync) XXX_Unmarshal Uses

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

type BroadcastMsg Uses

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 Uses

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

func (*BroadcastMsg) GetChainId Uses

func (m *BroadcastMsg) GetChainId() uint32

func (*BroadcastMsg) GetMsgBody Uses

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

func (*BroadcastMsg) GetMsgType Uses

func (m *BroadcastMsg) GetMsgType() MessageType

func (*BroadcastMsg) GetPeerId Uses

func (m *BroadcastMsg) GetPeerId() string

func (*BroadcastMsg) GetTimestamp Uses

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

func (*BroadcastMsg) ProtoMessage Uses

func (*BroadcastMsg) ProtoMessage()

func (*BroadcastMsg) Reset Uses

func (m *BroadcastMsg) Reset()

func (*BroadcastMsg) String Uses

func (m *BroadcastMsg) String() string

func (*BroadcastMsg) XXX_DiscardUnknown Uses

func (m *BroadcastMsg) XXX_DiscardUnknown()

func (*BroadcastMsg) XXX_Marshal Uses

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

func (*BroadcastMsg) XXX_Merge Uses

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

func (*BroadcastMsg) XXX_Size Uses

func (m *BroadcastMsg) XXX_Size() int

func (*BroadcastMsg) XXX_Unmarshal Uses

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

type MessageType Uses

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 Uses

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

func (MessageType) String Uses

func (x MessageType) String() string

type UnicastMsg Uses

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 Uses

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

func (*UnicastMsg) GetAddr Uses

func (m *UnicastMsg) GetAddr() string

func (*UnicastMsg) GetChainId Uses

func (m *UnicastMsg) GetChainId() uint32

func (*UnicastMsg) GetMsgBody Uses

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

func (*UnicastMsg) GetMsgType Uses

func (m *UnicastMsg) GetMsgType() MessageType

func (*UnicastMsg) GetPeerId Uses

func (m *UnicastMsg) GetPeerId() string

func (*UnicastMsg) GetTimestamp Uses

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

func (*UnicastMsg) ProtoMessage Uses

func (*UnicastMsg) ProtoMessage()

func (*UnicastMsg) Reset Uses

func (m *UnicastMsg) Reset()

func (*UnicastMsg) String Uses

func (m *UnicastMsg) String() string

func (*UnicastMsg) XXX_DiscardUnknown Uses

func (m *UnicastMsg) XXX_DiscardUnknown()

func (*UnicastMsg) XXX_Marshal Uses

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

func (*UnicastMsg) XXX_Merge Uses

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

func (*UnicastMsg) XXX_Size Uses

func (m *UnicastMsg) XXX_Size() int

func (*UnicastMsg) XXX_Unmarshal Uses

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

Package iotexrpc imports 4 packages (graph) and is imported by 7 packages. Updated 2020-07-14. Refresh now. Tools for package owners.