xchainpb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterXchainServer

func RegisterXchainServer(s *grpc.Server, srv XchainServer)

Types

type BaseReq

type BaseReq struct {
	Header               *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*BaseReq) Descriptor

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

func (*BaseReq) GetHeader

func (m *BaseReq) GetHeader() *ReqHeader

func (*BaseReq) ProtoMessage

func (*BaseReq) ProtoMessage()

func (*BaseReq) Reset

func (m *BaseReq) Reset()

func (*BaseReq) String

func (m *BaseReq) String() string

func (*BaseReq) XXX_DiscardUnknown

func (m *BaseReq) XXX_DiscardUnknown()

func (*BaseReq) XXX_Marshal

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

func (*BaseReq) XXX_Merge

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

func (*BaseReq) XXX_Size

func (m *BaseReq) XXX_Size() int

func (*BaseReq) XXX_Unmarshal

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

type BaseResp

type BaseResp struct {
	Header               *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*BaseResp) Descriptor

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

func (*BaseResp) GetHeader

func (m *BaseResp) GetHeader() *RespHeader

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) Reset

func (m *BaseResp) Reset()

func (*BaseResp) String

func (m *BaseResp) String() string

func (*BaseResp) XXX_DiscardUnknown

func (m *BaseResp) XXX_DiscardUnknown()

func (*BaseResp) XXX_Marshal

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

func (*BaseResp) XXX_Merge

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

func (*BaseResp) XXX_Size

func (m *BaseResp) XXX_Size() int

func (*BaseResp) XXX_Unmarshal

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

type PreExecReq

type PreExecReq struct {
	Header               *ReqHeader              `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string                  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Requests             []*protos.InvokeRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"`
	Initiator            string                  `protobuf:"bytes,4,opt,name=initiator,proto3" json:"initiator,omitempty"`
	AuthRequire          []string                `protobuf:"bytes,5,rep,name=authRequire,proto3" json:"authRequire,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*PreExecReq) Descriptor

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

func (*PreExecReq) GetAuthRequire

func (m *PreExecReq) GetAuthRequire() []string

func (*PreExecReq) GetBcname

func (m *PreExecReq) GetBcname() string

func (*PreExecReq) GetHeader

func (m *PreExecReq) GetHeader() *ReqHeader

func (*PreExecReq) GetInitiator

func (m *PreExecReq) GetInitiator() string

func (*PreExecReq) GetRequests

func (m *PreExecReq) GetRequests() []*protos.InvokeRequest

func (*PreExecReq) ProtoMessage

func (*PreExecReq) ProtoMessage()

func (*PreExecReq) Reset

func (m *PreExecReq) Reset()

func (*PreExecReq) String

func (m *PreExecReq) String() string

func (*PreExecReq) XXX_DiscardUnknown

func (m *PreExecReq) XXX_DiscardUnknown()

func (*PreExecReq) XXX_Marshal

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

func (*PreExecReq) XXX_Merge

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

func (*PreExecReq) XXX_Size

func (m *PreExecReq) XXX_Size() int

func (*PreExecReq) XXX_Unmarshal

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

type PreExecResp

type PreExecResp struct {
	Header               *RespHeader            `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string                 `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Response             *protos.InvokeResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*PreExecResp) Descriptor

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

func (*PreExecResp) GetBcname

func (m *PreExecResp) GetBcname() string

func (*PreExecResp) GetHeader

func (m *PreExecResp) GetHeader() *RespHeader

func (*PreExecResp) GetResponse

func (m *PreExecResp) GetResponse() *protos.InvokeResponse

func (*PreExecResp) ProtoMessage

func (*PreExecResp) ProtoMessage()

func (*PreExecResp) Reset

func (m *PreExecResp) Reset()

func (*PreExecResp) String

func (m *PreExecResp) String() string

func (*PreExecResp) XXX_DiscardUnknown

func (m *PreExecResp) XXX_DiscardUnknown()

func (*PreExecResp) XXX_Marshal

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

func (*PreExecResp) XXX_Merge

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

func (*PreExecResp) XXX_Size

func (m *PreExecResp) XXX_Size() int

func (*PreExecResp) XXX_Unmarshal

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

type QueryBlockReq

type QueryBlockReq struct {
	Header               *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string     `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	BlockId              []byte     `protobuf:"bytes,3,opt,name=blockId,proto3" json:"blockId,omitempty"`
	NeedContent          bool       `protobuf:"varint,4,opt,name=needContent,proto3" json:"needContent,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*QueryBlockReq) Descriptor

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

func (*QueryBlockReq) GetBcname

func (m *QueryBlockReq) GetBcname() string

func (*QueryBlockReq) GetBlockId

func (m *QueryBlockReq) GetBlockId() []byte

func (*QueryBlockReq) GetHeader

func (m *QueryBlockReq) GetHeader() *ReqHeader

func (*QueryBlockReq) GetNeedContent

func (m *QueryBlockReq) GetNeedContent() bool

func (*QueryBlockReq) ProtoMessage

func (*QueryBlockReq) ProtoMessage()

func (*QueryBlockReq) Reset

func (m *QueryBlockReq) Reset()

func (*QueryBlockReq) String

func (m *QueryBlockReq) String() string

func (*QueryBlockReq) XXX_DiscardUnknown

func (m *QueryBlockReq) XXX_DiscardUnknown()

func (*QueryBlockReq) XXX_Marshal

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

func (*QueryBlockReq) XXX_Merge

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

func (*QueryBlockReq) XXX_Size

func (m *QueryBlockReq) XXX_Size() int

func (*QueryBlockReq) XXX_Unmarshal

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

type QueryBlockResp

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

func (*QueryBlockResp) Descriptor

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

func (*QueryBlockResp) GetBlock

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

func (*QueryBlockResp) GetHeader

func (m *QueryBlockResp) GetHeader() *RespHeader

func (*QueryBlockResp) GetStatus

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

func (*QueryBlockResp) ProtoMessage

func (*QueryBlockResp) ProtoMessage()

func (*QueryBlockResp) Reset

func (m *QueryBlockResp) Reset()

func (*QueryBlockResp) String

func (m *QueryBlockResp) String() string

func (*QueryBlockResp) XXX_DiscardUnknown

func (m *QueryBlockResp) XXX_DiscardUnknown()

func (*QueryBlockResp) XXX_Marshal

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

func (*QueryBlockResp) XXX_Merge

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

func (*QueryBlockResp) XXX_Size

func (m *QueryBlockResp) XXX_Size() int

func (*QueryBlockResp) XXX_Unmarshal

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

type QueryChainStatusReq

type QueryChainStatusReq struct {
	Header               *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string     `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	NeedBranchBlock      bool       `protobuf:"varint,3,opt,name=needBranchBlock,proto3" json:"needBranchBlock,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*QueryChainStatusReq) Descriptor

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

func (*QueryChainStatusReq) GetBcname

func (m *QueryChainStatusReq) GetBcname() string

func (*QueryChainStatusReq) GetHeader

func (m *QueryChainStatusReq) GetHeader() *ReqHeader

func (*QueryChainStatusReq) GetNeedBranchBlock

func (m *QueryChainStatusReq) GetNeedBranchBlock() bool

func (*QueryChainStatusReq) ProtoMessage

func (*QueryChainStatusReq) ProtoMessage()

func (*QueryChainStatusReq) Reset

func (m *QueryChainStatusReq) Reset()

func (*QueryChainStatusReq) String

func (m *QueryChainStatusReq) String() string

func (*QueryChainStatusReq) XXX_DiscardUnknown

func (m *QueryChainStatusReq) XXX_DiscardUnknown()

func (*QueryChainStatusReq) XXX_Marshal

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

func (*QueryChainStatusReq) XXX_Merge

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

func (*QueryChainStatusReq) XXX_Size

func (m *QueryChainStatusReq) XXX_Size() int

func (*QueryChainStatusReq) XXX_Unmarshal

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

type QueryChainStatusResp

type QueryChainStatusResp struct {
	Header               *RespHeader        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string             `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	LedgerMeta           *xldgpb.LedgerMeta `protobuf:"bytes,3,opt,name=ledgerMeta,proto3" json:"ledgerMeta,omitempty"`
	UtxoMeta             *xldgpb.UtxoMeta   `protobuf:"bytes,4,opt,name=utxoMeta,proto3" json:"utxoMeta,omitempty"`
	BranchBlockId        []string           `protobuf:"bytes,5,rep,name=branchBlockId,proto3" json:"branchBlockId,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*QueryChainStatusResp) Descriptor

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

func (*QueryChainStatusResp) GetBcname

func (m *QueryChainStatusResp) GetBcname() string

func (*QueryChainStatusResp) GetBranchBlockId

func (m *QueryChainStatusResp) GetBranchBlockId() []string

func (*QueryChainStatusResp) GetHeader

func (m *QueryChainStatusResp) GetHeader() *RespHeader

func (*QueryChainStatusResp) GetLedgerMeta

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

func (*QueryChainStatusResp) GetUtxoMeta

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

func (*QueryChainStatusResp) ProtoMessage

func (*QueryChainStatusResp) ProtoMessage()

func (*QueryChainStatusResp) Reset

func (m *QueryChainStatusResp) Reset()

func (*QueryChainStatusResp) String

func (m *QueryChainStatusResp) String() string

func (*QueryChainStatusResp) XXX_DiscardUnknown

func (m *QueryChainStatusResp) XXX_DiscardUnknown()

func (*QueryChainStatusResp) XXX_Marshal

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

func (*QueryChainStatusResp) XXX_Merge

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

func (*QueryChainStatusResp) XXX_Size

func (m *QueryChainStatusResp) XXX_Size() int

func (*QueryChainStatusResp) XXX_Unmarshal

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

type QueryTxReq

type QueryTxReq struct {
	Header               *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string     `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Txid                 []byte     `protobuf:"bytes,3,opt,name=txid,proto3" json:"txid,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*QueryTxReq) Descriptor

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

func (*QueryTxReq) GetBcname

func (m *QueryTxReq) GetBcname() string

func (*QueryTxReq) GetHeader

func (m *QueryTxReq) GetHeader() *ReqHeader

func (*QueryTxReq) GetTxid

func (m *QueryTxReq) GetTxid() []byte

func (*QueryTxReq) ProtoMessage

func (*QueryTxReq) ProtoMessage()

func (*QueryTxReq) Reset

func (m *QueryTxReq) Reset()

func (*QueryTxReq) String

func (m *QueryTxReq) String() string

func (*QueryTxReq) XXX_DiscardUnknown

func (m *QueryTxReq) XXX_DiscardUnknown()

func (*QueryTxReq) XXX_Marshal

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

func (*QueryTxReq) XXX_Merge

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

func (*QueryTxReq) XXX_Size

func (m *QueryTxReq) XXX_Size() int

func (*QueryTxReq) XXX_Unmarshal

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

type QueryTxResp

type QueryTxResp struct {
	Header               *RespHeader              `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Status               xldgpb.TransactionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=xldgpb.TransactionStatus" json:"status,omitempty"`
	Distance             int64                    `protobuf:"varint,3,opt,name=distance,proto3" json:"distance,omitempty"`
	Tx                   *xldgpb.Transaction      `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*QueryTxResp) Descriptor

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

func (*QueryTxResp) GetDistance

func (m *QueryTxResp) GetDistance() int64

func (*QueryTxResp) GetHeader

func (m *QueryTxResp) GetHeader() *RespHeader

func (*QueryTxResp) GetStatus

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

func (*QueryTxResp) GetTx

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

func (*QueryTxResp) ProtoMessage

func (*QueryTxResp) ProtoMessage()

func (*QueryTxResp) Reset

func (m *QueryTxResp) Reset()

func (*QueryTxResp) String

func (m *QueryTxResp) String() string

func (*QueryTxResp) XXX_DiscardUnknown

func (m *QueryTxResp) XXX_DiscardUnknown()

func (*QueryTxResp) XXX_Marshal

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

func (*QueryTxResp) XXX_Merge

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

func (*QueryTxResp) XXX_Size

func (m *QueryTxResp) XXX_Size() int

func (*QueryTxResp) XXX_Unmarshal

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

type ReqHeader

type ReqHeader struct {
	// 请求id
	LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
	// 标记请求方,方便问题定位
	SelfName             string   `protobuf:"bytes,2,opt,name=self_name,json=selfName,proto3" json:"self_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

通用请求Header

func (*ReqHeader) Descriptor

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

func (*ReqHeader) GetLogId

func (m *ReqHeader) GetLogId() string

func (*ReqHeader) GetSelfName

func (m *ReqHeader) GetSelfName() string

func (*ReqHeader) ProtoMessage

func (*ReqHeader) ProtoMessage()

func (*ReqHeader) Reset

func (m *ReqHeader) Reset()

func (*ReqHeader) String

func (m *ReqHeader) String() string

func (*ReqHeader) XXX_DiscardUnknown

func (m *ReqHeader) XXX_DiscardUnknown()

func (*ReqHeader) XXX_Marshal

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

func (*ReqHeader) XXX_Merge

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

func (*ReqHeader) XXX_Size

func (m *ReqHeader) XXX_Size() int

func (*ReqHeader) XXX_Unmarshal

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

type RespHeader

type RespHeader struct {
	// 请求id
	LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
	// 错误码
	ErrCode int64 `protobuf:"varint,2,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `protobuf:"bytes,3,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
	// 节点追踪信息,方便问题定位
	TraceId              string   `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

通用响应Header

func (*RespHeader) Descriptor

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

func (*RespHeader) GetErrCode

func (m *RespHeader) GetErrCode() int64

func (*RespHeader) GetErrMsg

func (m *RespHeader) GetErrMsg() string

func (*RespHeader) GetLogId

func (m *RespHeader) GetLogId() string

func (*RespHeader) GetTraceId

func (m *RespHeader) GetTraceId() string

func (*RespHeader) ProtoMessage

func (*RespHeader) ProtoMessage()

func (*RespHeader) Reset

func (m *RespHeader) Reset()

func (*RespHeader) String

func (m *RespHeader) String() string

func (*RespHeader) XXX_DiscardUnknown

func (m *RespHeader) XXX_DiscardUnknown()

func (*RespHeader) XXX_Marshal

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

func (*RespHeader) XXX_Merge

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

func (*RespHeader) XXX_Size

func (m *RespHeader) XXX_Size() int

func (*RespHeader) XXX_Unmarshal

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

type SelectUtxoReq

type SelectUtxoReq struct {
	Header               *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string     `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address              string     `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	TotalNeed            string     `protobuf:"bytes,5,opt,name=totalNeed,proto3" json:"totalNeed,omitempty"`
	NeedLock             bool       `protobuf:"varint,6,opt,name=needLock,proto3" json:"needLock,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*SelectUtxoReq) Descriptor

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

func (*SelectUtxoReq) GetAddress

func (m *SelectUtxoReq) GetAddress() string

func (*SelectUtxoReq) GetBcname

func (m *SelectUtxoReq) GetBcname() string

func (*SelectUtxoReq) GetHeader

func (m *SelectUtxoReq) GetHeader() *ReqHeader

func (*SelectUtxoReq) GetNeedLock

func (m *SelectUtxoReq) GetNeedLock() bool

func (*SelectUtxoReq) GetTotalNeed

func (m *SelectUtxoReq) GetTotalNeed() string

func (*SelectUtxoReq) ProtoMessage

func (*SelectUtxoReq) ProtoMessage()

func (*SelectUtxoReq) Reset

func (m *SelectUtxoReq) Reset()

func (*SelectUtxoReq) String

func (m *SelectUtxoReq) String() string

func (*SelectUtxoReq) XXX_DiscardUnknown

func (m *SelectUtxoReq) XXX_DiscardUnknown()

func (*SelectUtxoReq) XXX_Marshal

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

func (*SelectUtxoReq) XXX_Merge

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

func (*SelectUtxoReq) XXX_Size

func (m *SelectUtxoReq) XXX_Size() int

func (*SelectUtxoReq) XXX_Unmarshal

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

type SelectUtxoResp

type SelectUtxoResp struct {
	Header               *RespHeader    `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	UtxoList             []*xldgpb.Utxo `protobuf:"bytes,2,rep,name=utxoList,proto3" json:"utxoList,omitempty"`
	TotalAmount          string         `protobuf:"bytes,3,opt,name=totalAmount,proto3" json:"totalAmount,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*SelectUtxoResp) Descriptor

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

func (*SelectUtxoResp) GetHeader

func (m *SelectUtxoResp) GetHeader() *RespHeader

func (*SelectUtxoResp) GetTotalAmount

func (m *SelectUtxoResp) GetTotalAmount() string

func (*SelectUtxoResp) GetUtxoList

func (m *SelectUtxoResp) GetUtxoList() []*xldgpb.Utxo

func (*SelectUtxoResp) ProtoMessage

func (*SelectUtxoResp) ProtoMessage()

func (*SelectUtxoResp) Reset

func (m *SelectUtxoResp) Reset()

func (*SelectUtxoResp) String

func (m *SelectUtxoResp) String() string

func (*SelectUtxoResp) XXX_DiscardUnknown

func (m *SelectUtxoResp) XXX_DiscardUnknown()

func (*SelectUtxoResp) XXX_Marshal

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

func (*SelectUtxoResp) XXX_Merge

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

func (*SelectUtxoResp) XXX_Size

func (m *SelectUtxoResp) XXX_Size() int

func (*SelectUtxoResp) XXX_Unmarshal

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

type SubmitTxReq

type SubmitTxReq struct {
	Header               *ReqHeader          `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname               string              `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Txid                 []byte              `protobuf:"bytes,3,opt,name=txid,proto3" json:"txid,omitempty"`
	Tx                   *xldgpb.Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*SubmitTxReq) Descriptor

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

func (*SubmitTxReq) GetBcname

func (m *SubmitTxReq) GetBcname() string

func (*SubmitTxReq) GetHeader

func (m *SubmitTxReq) GetHeader() *ReqHeader

func (*SubmitTxReq) GetTx

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

func (*SubmitTxReq) GetTxid

func (m *SubmitTxReq) GetTxid() []byte

func (*SubmitTxReq) ProtoMessage

func (*SubmitTxReq) ProtoMessage()

func (*SubmitTxReq) Reset

func (m *SubmitTxReq) Reset()

func (*SubmitTxReq) String

func (m *SubmitTxReq) String() string

func (*SubmitTxReq) XXX_DiscardUnknown

func (m *SubmitTxReq) XXX_DiscardUnknown()

func (*SubmitTxReq) XXX_Marshal

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

func (*SubmitTxReq) XXX_Merge

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

func (*SubmitTxReq) XXX_Size

func (m *SubmitTxReq) XXX_Size() int

func (*SubmitTxReq) XXX_Unmarshal

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

type UnimplementedXchainServer

type UnimplementedXchainServer struct {
}

UnimplementedXchainServer can be embedded to have forward compatible implementations.

func (*UnimplementedXchainServer) CheckAlive

func (*UnimplementedXchainServer) CheckAlive(ctx context.Context, req *BaseReq) (*BaseResp, error)

func (*UnimplementedXchainServer) PreExec

func (*UnimplementedXchainServer) QueryBlock

func (*UnimplementedXchainServer) QueryChainStatus

func (*UnimplementedXchainServer) QueryTx

func (*UnimplementedXchainServer) SelectUtxo

func (*UnimplementedXchainServer) SubmitTx

type XchainClient

type XchainClient interface {
	// 示例接口
	CheckAlive(ctx context.Context, in *BaseReq, opts ...grpc.CallOption) (*BaseResp, error)
	// 提交交易
	SubmitTx(ctx context.Context, in *SubmitTxReq, opts ...grpc.CallOption) (*BaseResp, error)
	// 合约预执行
	PreExec(ctx context.Context, in *PreExecReq, opts ...grpc.CallOption) (*PreExecResp, error)
	// 选择utxo
	SelectUtxo(ctx context.Context, in *SelectUtxoReq, opts ...grpc.CallOption) (*SelectUtxoResp, error)
	// 查询交易信息
	QueryTx(ctx context.Context, in *QueryTxReq, opts ...grpc.CallOption) (*QueryTxResp, error)
	// 查询区块信息
	QueryBlock(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*QueryBlockResp, error)
	// 查询区块链状态
	QueryChainStatus(ctx context.Context, in *QueryChainStatusReq, opts ...grpc.CallOption) (*QueryChainStatusResp, error)
}

XchainClient is the client API for Xchain service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewXchainClient

func NewXchainClient(cc grpc.ClientConnInterface) XchainClient

type XchainServer

type XchainServer interface {
	// 示例接口
	CheckAlive(context.Context, *BaseReq) (*BaseResp, error)
	// 提交交易
	SubmitTx(context.Context, *SubmitTxReq) (*BaseResp, error)
	// 合约预执行
	PreExec(context.Context, *PreExecReq) (*PreExecResp, error)
	// 选择utxo
	SelectUtxo(context.Context, *SelectUtxoReq) (*SelectUtxoResp, error)
	// 查询交易信息
	QueryTx(context.Context, *QueryTxReq) (*QueryTxResp, error)
	// 查询区块信息
	QueryBlock(context.Context, *QueryBlockReq) (*QueryBlockResp, error)
	// 查询区块链状态
	QueryChainStatus(context.Context, *QueryChainStatusReq) (*QueryChainStatusResp, error)
}

XchainServer is the server API for Xchain service.

Jump to

Keyboard shortcuts

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