iotexrpc

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 5 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,
}

Functions

This section is empty.

Types

type BlockContainer

type BlockContainer struct {
	Block                *iotextypes.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

block container used to send old/existing blocks in block sync

func (*BlockContainer) Descriptor

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

func (*BlockContainer) GetBlock

func (m *BlockContainer) GetBlock() *iotextypes.Block

func (*BlockContainer) ProtoMessage

func (*BlockContainer) ProtoMessage()

func (*BlockContainer) Reset

func (m *BlockContainer) Reset()

func (*BlockContainer) String

func (m *BlockContainer) String() string

func (*BlockContainer) XXX_DiscardUnknown

func (m *BlockContainer) XXX_DiscardUnknown()

func (*BlockContainer) XXX_Marshal

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

func (*BlockContainer) XXX_Merge

func (dst *BlockContainer) XXX_Merge(src proto.Message)

func (*BlockContainer) XXX_Size

func (m *BlockContainer) XXX_Size() int

func (*BlockContainer) XXX_Unmarshal

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

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 (dst *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 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 (dst *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

Jump to

Keyboard shortcuts

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