xpb

package
v0.0.0-...-56f3d1a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockID

type BlockID struct {
	Bcname  string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Blockid []byte `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"`
	// if need content
	NeedContent          bool     `protobuf:"varint,3,opt,name=need_content,json=needContent,proto3" json:"need_content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockID) Descriptor

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

func (*BlockID) GetBcname

func (m *BlockID) GetBcname() string

func (*BlockID) GetBlockid

func (m *BlockID) GetBlockid() []byte

func (*BlockID) GetNeedContent

func (m *BlockID) GetNeedContent() bool

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) Reset

func (m *BlockID) Reset()

func (*BlockID) String

func (m *BlockID) String() string

func (*BlockID) XXX_DiscardUnknown

func (m *BlockID) XXX_DiscardUnknown()

func (*BlockID) XXX_Marshal

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

func (*BlockID) XXX_Merge

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

func (*BlockID) XXX_Size

func (m *BlockID) XXX_Size() int

func (*BlockID) XXX_Unmarshal

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

type BlockInfo

type BlockInfo struct {
	Status               xldgpb.BlockStatus    `protobuf:"varint,1,opt,name=status,proto3,enum=xldgpb.BlockStatus" json:"status,omitempty"`
	Block                *xldgpb.InternalBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*BlockInfo) Descriptor

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

func (*BlockInfo) GetBlock

func (m *BlockInfo) GetBlock() *xldgpb.InternalBlock

func (*BlockInfo) GetStatus

func (m *BlockInfo) GetStatus() xldgpb.BlockStatus

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) Reset

func (m *BlockInfo) Reset()

func (*BlockInfo) String

func (m *BlockInfo) String() string

func (*BlockInfo) XXX_DiscardUnknown

func (m *BlockInfo) XXX_DiscardUnknown()

func (*BlockInfo) XXX_Marshal

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

func (*BlockInfo) XXX_Merge

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

func (*BlockInfo) XXX_Size

func (m *BlockInfo) XXX_Size() int

func (*BlockInfo) XXX_Unmarshal

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

type ChainStatus

type ChainStatus struct {
	LedgerMeta           *xldgpb.LedgerMeta    `protobuf:"bytes,1,opt,name=ledger_meta,json=ledgerMeta,proto3" json:"ledger_meta,omitempty"`
	UtxoMeta             *xldgpb.UtxoMeta      `protobuf:"bytes,2,opt,name=utxo_meta,json=utxoMeta,proto3" json:"utxo_meta,omitempty"`
	Block                *xldgpb.InternalBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"`
	BranchIds            []string              `protobuf:"bytes,4,rep,name=branch_ids,json=branchIds,proto3" json:"branch_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*ChainStatus) Descriptor

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

func (*ChainStatus) GetBlock

func (m *ChainStatus) GetBlock() *xldgpb.InternalBlock

func (*ChainStatus) GetBranchIds

func (m *ChainStatus) GetBranchIds() []string

func (*ChainStatus) GetLedgerMeta

func (m *ChainStatus) GetLedgerMeta() *xldgpb.LedgerMeta

func (*ChainStatus) GetUtxoMeta

func (m *ChainStatus) GetUtxoMeta() *xldgpb.UtxoMeta

func (*ChainStatus) ProtoMessage

func (*ChainStatus) ProtoMessage()

func (*ChainStatus) Reset

func (m *ChainStatus) Reset()

func (*ChainStatus) String

func (m *ChainStatus) String() string

func (*ChainStatus) XXX_DiscardUnknown

func (m *ChainStatus) XXX_DiscardUnknown()

func (*ChainStatus) XXX_Marshal

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

func (*ChainStatus) XXX_Merge

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

func (*ChainStatus) XXX_Size

func (m *ChainStatus) XXX_Size() int

func (*ChainStatus) XXX_Unmarshal

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

type ConsensusStatus

type ConsensusStatus struct {
	Version              string   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	ConsensusName        string   `protobuf:"bytes,2,opt,name=consensus_name,json=consensusName,proto3" json:"consensus_name,omitempty"`
	StartHeight          string   `protobuf:"bytes,3,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	ValidatorsInfo       string   `protobuf:"bytes,4,opt,name=validators_info,json=validatorsInfo,proto3" json:"validators_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ConsensusStatus) Descriptor

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

func (*ConsensusStatus) GetConsensusName

func (m *ConsensusStatus) GetConsensusName() string

func (*ConsensusStatus) GetStartHeight

func (m *ConsensusStatus) GetStartHeight() string

func (*ConsensusStatus) GetValidatorsInfo

func (m *ConsensusStatus) GetValidatorsInfo() string

func (*ConsensusStatus) GetVersion

func (m *ConsensusStatus) GetVersion() string

func (*ConsensusStatus) ProtoMessage

func (*ConsensusStatus) ProtoMessage()

func (*ConsensusStatus) Reset

func (m *ConsensusStatus) Reset()

func (*ConsensusStatus) String

func (m *ConsensusStatus) String() string

func (*ConsensusStatus) XXX_DiscardUnknown

func (m *ConsensusStatus) XXX_DiscardUnknown()

func (*ConsensusStatus) XXX_Marshal

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

func (*ConsensusStatus) XXX_Merge

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

func (*ConsensusStatus) XXX_Size

func (m *ConsensusStatus) XXX_Size() int

func (*ConsensusStatus) XXX_Unmarshal

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

type GetBlockHeaderRequest

type GetBlockHeaderRequest struct {
	Bcname               string   `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Height               int64    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Size                 int64    `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBlockHeaderRequest) Descriptor

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

func (*GetBlockHeaderRequest) GetBcname

func (m *GetBlockHeaderRequest) GetBcname() string

func (*GetBlockHeaderRequest) GetHeight

func (m *GetBlockHeaderRequest) GetHeight() int64

func (*GetBlockHeaderRequest) GetSize

func (m *GetBlockHeaderRequest) GetSize() int64

func (*GetBlockHeaderRequest) ProtoMessage

func (*GetBlockHeaderRequest) ProtoMessage()

func (*GetBlockHeaderRequest) Reset

func (m *GetBlockHeaderRequest) Reset()

func (*GetBlockHeaderRequest) String

func (m *GetBlockHeaderRequest) String() string

func (*GetBlockHeaderRequest) XXX_DiscardUnknown

func (m *GetBlockHeaderRequest) XXX_DiscardUnknown()

func (*GetBlockHeaderRequest) XXX_Marshal

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

func (*GetBlockHeaderRequest) XXX_Merge

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

func (*GetBlockHeaderRequest) XXX_Size

func (m *GetBlockHeaderRequest) XXX_Size() int

func (*GetBlockHeaderRequest) XXX_Unmarshal

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

type GetBlockHeaderResponse

type GetBlockHeaderResponse struct {
	Blocks               []*xldgpb.InternalBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*GetBlockHeaderResponse) Descriptor

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

func (*GetBlockHeaderResponse) GetBlocks

func (m *GetBlockHeaderResponse) GetBlocks() []*xldgpb.InternalBlock

func (*GetBlockHeaderResponse) ProtoMessage

func (*GetBlockHeaderResponse) ProtoMessage()

func (*GetBlockHeaderResponse) Reset

func (m *GetBlockHeaderResponse) Reset()

func (*GetBlockHeaderResponse) String

func (m *GetBlockHeaderResponse) String() string

func (*GetBlockHeaderResponse) XXX_DiscardUnknown

func (m *GetBlockHeaderResponse) XXX_DiscardUnknown()

func (*GetBlockHeaderResponse) XXX_Marshal

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

func (*GetBlockHeaderResponse) XXX_Merge

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

func (*GetBlockHeaderResponse) XXX_Size

func (m *GetBlockHeaderResponse) XXX_Size() int

func (*GetBlockHeaderResponse) XXX_Unmarshal

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

type GetBlockTxsRequest

type GetBlockTxsRequest struct {
	Bcname               string   `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Blockid              []byte   `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"`
	Txs                  []int32  `protobuf:"varint,3,rep,packed,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBlockTxsRequest) Descriptor

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

func (*GetBlockTxsRequest) GetBcname

func (m *GetBlockTxsRequest) GetBcname() string

func (*GetBlockTxsRequest) GetBlockid

func (m *GetBlockTxsRequest) GetBlockid() []byte

func (*GetBlockTxsRequest) GetTxs

func (m *GetBlockTxsRequest) GetTxs() []int32

func (*GetBlockTxsRequest) ProtoMessage

func (*GetBlockTxsRequest) ProtoMessage()

func (*GetBlockTxsRequest) Reset

func (m *GetBlockTxsRequest) Reset()

func (*GetBlockTxsRequest) String

func (m *GetBlockTxsRequest) String() string

func (*GetBlockTxsRequest) XXX_DiscardUnknown

func (m *GetBlockTxsRequest) XXX_DiscardUnknown()

func (*GetBlockTxsRequest) XXX_Marshal

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

func (*GetBlockTxsRequest) XXX_Merge

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

func (*GetBlockTxsRequest) XXX_Size

func (m *GetBlockTxsRequest) XXX_Size() int

func (*GetBlockTxsRequest) XXX_Unmarshal

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

type GetBlockTxsResponse

type GetBlockTxsResponse struct {
	Txs                  []*xldgpb.Transaction `protobuf:"bytes,4,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*GetBlockTxsResponse) Descriptor

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

func (*GetBlockTxsResponse) GetTxs

func (m *GetBlockTxsResponse) GetTxs() []*xldgpb.Transaction

func (*GetBlockTxsResponse) ProtoMessage

func (*GetBlockTxsResponse) ProtoMessage()

func (*GetBlockTxsResponse) Reset

func (m *GetBlockTxsResponse) Reset()

func (*GetBlockTxsResponse) String

func (m *GetBlockTxsResponse) String() string

func (*GetBlockTxsResponse) XXX_DiscardUnknown

func (m *GetBlockTxsResponse) XXX_DiscardUnknown()

func (*GetBlockTxsResponse) XXX_Marshal

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

func (*GetBlockTxsResponse) XXX_Merge

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

func (*GetBlockTxsResponse) XXX_Size

func (m *GetBlockTxsResponse) XXX_Size() int

func (*GetBlockTxsResponse) XXX_Unmarshal

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

type SystemStatus

type SystemStatus struct {
	ChainStatus          *ChainStatus `protobuf:"bytes,1,opt,name=chain_status,json=chainStatus,proto3" json:"chain_status,omitempty"`
	PeerUrls             []string     `protobuf:"bytes,2,rep,name=peer_urls,json=peerUrls,proto3" json:"peer_urls,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*SystemStatus) Descriptor

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

func (*SystemStatus) GetChainStatus

func (m *SystemStatus) GetChainStatus() *ChainStatus

func (*SystemStatus) GetPeerUrls

func (m *SystemStatus) GetPeerUrls() []string

func (*SystemStatus) ProtoMessage

func (*SystemStatus) ProtoMessage()

func (*SystemStatus) Reset

func (m *SystemStatus) Reset()

func (*SystemStatus) String

func (m *SystemStatus) String() string

func (*SystemStatus) XXX_DiscardUnknown

func (m *SystemStatus) XXX_DiscardUnknown()

func (*SystemStatus) XXX_Marshal

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

func (*SystemStatus) XXX_Merge

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

func (*SystemStatus) XXX_Size

func (m *SystemStatus) XXX_Size() int

func (*SystemStatus) XXX_Unmarshal

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

type TipStatus

type TipStatus struct {
	IsTrunkTip           bool     `protobuf:"varint,1,opt,name=is_trunk_tip,json=isTrunkTip,proto3" json:"is_trunk_tip,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TipStatus) Descriptor

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

func (*TipStatus) GetIsTrunkTip

func (m *TipStatus) GetIsTrunkTip() bool

func (*TipStatus) ProtoMessage

func (*TipStatus) ProtoMessage()

func (*TipStatus) Reset

func (m *TipStatus) Reset()

func (*TipStatus) String

func (m *TipStatus) String() string

func (*TipStatus) XXX_DiscardUnknown

func (m *TipStatus) XXX_DiscardUnknown()

func (*TipStatus) XXX_Marshal

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

func (*TipStatus) XXX_Merge

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

func (*TipStatus) XXX_Size

func (m *TipStatus) XXX_Size() int

func (*TipStatus) XXX_Unmarshal

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

type Transactions

type Transactions struct {
	Txs                  []*xldgpb.Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Transactions) Descriptor

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

func (*Transactions) GetTxs

func (m *Transactions) GetTxs() []*xldgpb.Transaction

func (*Transactions) ProtoMessage

func (*Transactions) ProtoMessage()

func (*Transactions) Reset

func (m *Transactions) Reset()

func (*Transactions) String

func (m *Transactions) String() string

func (*Transactions) XXX_DiscardUnknown

func (m *Transactions) XXX_DiscardUnknown()

func (*Transactions) XXX_Marshal

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

func (*Transactions) XXX_Merge

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

func (*Transactions) XXX_Size

func (m *Transactions) XXX_Size() int

func (*Transactions) XXX_Unmarshal

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

type TxInfo

type TxInfo struct {
	// 当前状态
	Status xldgpb.TransactionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=xldgpb.TransactionStatus" json:"status,omitempty"`
	// 离主干末端的距离(如果在主干上)
	Distance             int64               `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
	Tx                   *xldgpb.Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*TxInfo) Descriptor

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

func (*TxInfo) GetDistance

func (m *TxInfo) GetDistance() int64

func (*TxInfo) GetStatus

func (m *TxInfo) GetStatus() xldgpb.TransactionStatus

func (*TxInfo) GetTx

func (m *TxInfo) GetTx() *xldgpb.Transaction

func (*TxInfo) ProtoMessage

func (*TxInfo) ProtoMessage()

func (*TxInfo) Reset

func (m *TxInfo) Reset()

func (*TxInfo) String

func (m *TxInfo) String() string

func (*TxInfo) XXX_DiscardUnknown

func (m *TxInfo) XXX_DiscardUnknown()

func (*TxInfo) XXX_Marshal

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

func (*TxInfo) XXX_Merge

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

func (*TxInfo) XXX_Size

func (m *TxInfo) XXX_Size() int

func (*TxInfo) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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