Documentation
¶
Index ¶
- func RegisterXchainServer(s *grpc.Server, srv XchainServer)
- type BaseReq
- func (*BaseReq) Descriptor() ([]byte, []int)
- func (m *BaseReq) GetHeader() *ReqHeader
- func (*BaseReq) ProtoMessage()
- func (m *BaseReq) Reset()
- func (m *BaseReq) String() string
- func (m *BaseReq) XXX_DiscardUnknown()
- func (m *BaseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseReq) XXX_Merge(src proto.Message)
- func (m *BaseReq) XXX_Size() int
- func (m *BaseReq) XXX_Unmarshal(b []byte) error
- type BaseResp
- func (*BaseResp) Descriptor() ([]byte, []int)
- func (m *BaseResp) GetHeader() *RespHeader
- func (*BaseResp) ProtoMessage()
- func (m *BaseResp) Reset()
- func (m *BaseResp) String() string
- func (m *BaseResp) XXX_DiscardUnknown()
- func (m *BaseResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseResp) XXX_Merge(src proto.Message)
- func (m *BaseResp) XXX_Size() int
- func (m *BaseResp) XXX_Unmarshal(b []byte) error
- type PreExecReq
- func (*PreExecReq) Descriptor() ([]byte, []int)
- func (m *PreExecReq) GetAuthRequire() []string
- func (m *PreExecReq) GetBcname() string
- func (m *PreExecReq) GetHeader() *ReqHeader
- func (m *PreExecReq) GetInitiator() string
- func (m *PreExecReq) GetRequests() []*protos.InvokeRequest
- func (*PreExecReq) ProtoMessage()
- func (m *PreExecReq) Reset()
- func (m *PreExecReq) String() string
- func (m *PreExecReq) XXX_DiscardUnknown()
- func (m *PreExecReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PreExecReq) XXX_Merge(src proto.Message)
- func (m *PreExecReq) XXX_Size() int
- func (m *PreExecReq) XXX_Unmarshal(b []byte) error
- type PreExecResp
- func (*PreExecResp) Descriptor() ([]byte, []int)
- func (m *PreExecResp) GetBcname() string
- func (m *PreExecResp) GetHeader() *RespHeader
- func (m *PreExecResp) GetResponse() *protos.InvokeResponse
- func (*PreExecResp) ProtoMessage()
- func (m *PreExecResp) Reset()
- func (m *PreExecResp) String() string
- func (m *PreExecResp) XXX_DiscardUnknown()
- func (m *PreExecResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PreExecResp) XXX_Merge(src proto.Message)
- func (m *PreExecResp) XXX_Size() int
- func (m *PreExecResp) XXX_Unmarshal(b []byte) error
- type QueryBlockReq
- func (*QueryBlockReq) Descriptor() ([]byte, []int)
- func (m *QueryBlockReq) GetBcname() string
- func (m *QueryBlockReq) GetBlockId() []byte
- func (m *QueryBlockReq) GetHeader() *ReqHeader
- func (m *QueryBlockReq) GetNeedContent() bool
- func (*QueryBlockReq) ProtoMessage()
- func (m *QueryBlockReq) Reset()
- func (m *QueryBlockReq) String() string
- func (m *QueryBlockReq) XXX_DiscardUnknown()
- func (m *QueryBlockReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockReq) XXX_Merge(src proto.Message)
- func (m *QueryBlockReq) XXX_Size() int
- func (m *QueryBlockReq) XXX_Unmarshal(b []byte) error
- type QueryBlockResp
- func (*QueryBlockResp) Descriptor() ([]byte, []int)
- func (m *QueryBlockResp) GetBlock() *xldgpb.InternalBlock
- func (m *QueryBlockResp) GetHeader() *RespHeader
- func (m *QueryBlockResp) GetStatus() xldgpb.BlockStatus
- func (*QueryBlockResp) ProtoMessage()
- func (m *QueryBlockResp) Reset()
- func (m *QueryBlockResp) String() string
- func (m *QueryBlockResp) XXX_DiscardUnknown()
- func (m *QueryBlockResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockResp) XXX_Merge(src proto.Message)
- func (m *QueryBlockResp) XXX_Size() int
- func (m *QueryBlockResp) XXX_Unmarshal(b []byte) error
- type QueryChainStatusReq
- func (*QueryChainStatusReq) Descriptor() ([]byte, []int)
- func (m *QueryChainStatusReq) GetBcname() string
- func (m *QueryChainStatusReq) GetHeader() *ReqHeader
- func (m *QueryChainStatusReq) GetNeedBranchBlock() bool
- func (*QueryChainStatusReq) ProtoMessage()
- func (m *QueryChainStatusReq) Reset()
- func (m *QueryChainStatusReq) String() string
- func (m *QueryChainStatusReq) XXX_DiscardUnknown()
- func (m *QueryChainStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryChainStatusReq) XXX_Merge(src proto.Message)
- func (m *QueryChainStatusReq) XXX_Size() int
- func (m *QueryChainStatusReq) XXX_Unmarshal(b []byte) error
- type QueryChainStatusResp
- func (*QueryChainStatusResp) Descriptor() ([]byte, []int)
- func (m *QueryChainStatusResp) GetBcname() string
- func (m *QueryChainStatusResp) GetBranchBlockId() []string
- func (m *QueryChainStatusResp) GetHeader() *RespHeader
- func (m *QueryChainStatusResp) GetLedgerMeta() *xldgpb.LedgerMeta
- func (m *QueryChainStatusResp) GetUtxoMeta() *xldgpb.UtxoMeta
- func (*QueryChainStatusResp) ProtoMessage()
- func (m *QueryChainStatusResp) Reset()
- func (m *QueryChainStatusResp) String() string
- func (m *QueryChainStatusResp) XXX_DiscardUnknown()
- func (m *QueryChainStatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryChainStatusResp) XXX_Merge(src proto.Message)
- func (m *QueryChainStatusResp) XXX_Size() int
- func (m *QueryChainStatusResp) XXX_Unmarshal(b []byte) error
- type QueryTxReq
- func (*QueryTxReq) Descriptor() ([]byte, []int)
- func (m *QueryTxReq) GetBcname() string
- func (m *QueryTxReq) GetHeader() *ReqHeader
- func (m *QueryTxReq) GetTxid() []byte
- func (*QueryTxReq) ProtoMessage()
- func (m *QueryTxReq) Reset()
- func (m *QueryTxReq) String() string
- func (m *QueryTxReq) XXX_DiscardUnknown()
- func (m *QueryTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTxReq) XXX_Merge(src proto.Message)
- func (m *QueryTxReq) XXX_Size() int
- func (m *QueryTxReq) XXX_Unmarshal(b []byte) error
- type QueryTxResp
- func (*QueryTxResp) Descriptor() ([]byte, []int)
- func (m *QueryTxResp) GetDistance() int64
- func (m *QueryTxResp) GetHeader() *RespHeader
- func (m *QueryTxResp) GetStatus() xldgpb.TransactionStatus
- func (m *QueryTxResp) GetTx() *xldgpb.Transaction
- func (*QueryTxResp) ProtoMessage()
- func (m *QueryTxResp) Reset()
- func (m *QueryTxResp) String() string
- func (m *QueryTxResp) XXX_DiscardUnknown()
- func (m *QueryTxResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTxResp) XXX_Merge(src proto.Message)
- func (m *QueryTxResp) XXX_Size() int
- func (m *QueryTxResp) XXX_Unmarshal(b []byte) error
- type ReqHeader
- func (*ReqHeader) Descriptor() ([]byte, []int)
- func (m *ReqHeader) GetLogId() string
- func (m *ReqHeader) GetSelfName() string
- func (*ReqHeader) ProtoMessage()
- func (m *ReqHeader) Reset()
- func (m *ReqHeader) String() string
- func (m *ReqHeader) XXX_DiscardUnknown()
- func (m *ReqHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqHeader) XXX_Merge(src proto.Message)
- func (m *ReqHeader) XXX_Size() int
- func (m *ReqHeader) XXX_Unmarshal(b []byte) error
- type RespHeader
- func (*RespHeader) Descriptor() ([]byte, []int)
- func (m *RespHeader) GetErrCode() int64
- func (m *RespHeader) GetErrMsg() string
- func (m *RespHeader) GetLogId() string
- func (m *RespHeader) GetTraceId() string
- func (*RespHeader) ProtoMessage()
- func (m *RespHeader) Reset()
- func (m *RespHeader) String() string
- func (m *RespHeader) XXX_DiscardUnknown()
- func (m *RespHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespHeader) XXX_Merge(src proto.Message)
- func (m *RespHeader) XXX_Size() int
- func (m *RespHeader) XXX_Unmarshal(b []byte) error
- type SelectUtxoReq
- func (*SelectUtxoReq) Descriptor() ([]byte, []int)
- func (m *SelectUtxoReq) GetAddress() string
- func (m *SelectUtxoReq) GetBcname() string
- func (m *SelectUtxoReq) GetHeader() *ReqHeader
- func (m *SelectUtxoReq) GetNeedLock() bool
- func (m *SelectUtxoReq) GetTotalNeed() string
- func (*SelectUtxoReq) ProtoMessage()
- func (m *SelectUtxoReq) Reset()
- func (m *SelectUtxoReq) String() string
- func (m *SelectUtxoReq) XXX_DiscardUnknown()
- func (m *SelectUtxoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelectUtxoReq) XXX_Merge(src proto.Message)
- func (m *SelectUtxoReq) XXX_Size() int
- func (m *SelectUtxoReq) XXX_Unmarshal(b []byte) error
- type SelectUtxoResp
- func (*SelectUtxoResp) Descriptor() ([]byte, []int)
- func (m *SelectUtxoResp) GetHeader() *RespHeader
- func (m *SelectUtxoResp) GetTotalAmount() string
- func (m *SelectUtxoResp) GetUtxoList() []*xldgpb.Utxo
- func (*SelectUtxoResp) ProtoMessage()
- func (m *SelectUtxoResp) Reset()
- func (m *SelectUtxoResp) String() string
- func (m *SelectUtxoResp) XXX_DiscardUnknown()
- func (m *SelectUtxoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelectUtxoResp) XXX_Merge(src proto.Message)
- func (m *SelectUtxoResp) XXX_Size() int
- func (m *SelectUtxoResp) XXX_Unmarshal(b []byte) error
- type SubmitTxReq
- func (*SubmitTxReq) Descriptor() ([]byte, []int)
- func (m *SubmitTxReq) GetBcname() string
- func (m *SubmitTxReq) GetHeader() *ReqHeader
- func (m *SubmitTxReq) GetTx() *xldgpb.Transaction
- func (m *SubmitTxReq) GetTxid() []byte
- func (*SubmitTxReq) ProtoMessage()
- func (m *SubmitTxReq) Reset()
- func (m *SubmitTxReq) String() string
- func (m *SubmitTxReq) XXX_DiscardUnknown()
- func (m *SubmitTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubmitTxReq) XXX_Merge(src proto.Message)
- func (m *SubmitTxReq) XXX_Size() int
- func (m *SubmitTxReq) XXX_Unmarshal(b []byte) error
- type UnimplementedXchainServer
- func (*UnimplementedXchainServer) CheckAlive(ctx context.Context, req *BaseReq) (*BaseResp, error)
- func (*UnimplementedXchainServer) PreExec(ctx context.Context, req *PreExecReq) (*PreExecResp, error)
- func (*UnimplementedXchainServer) QueryBlock(ctx context.Context, req *QueryBlockReq) (*QueryBlockResp, error)
- func (*UnimplementedXchainServer) QueryChainStatus(ctx context.Context, req *QueryChainStatusReq) (*QueryChainStatusResp, error)
- func (*UnimplementedXchainServer) QueryTx(ctx context.Context, req *QueryTxReq) (*QueryTxResp, error)
- func (*UnimplementedXchainServer) SelectUtxo(ctx context.Context, req *SelectUtxoReq) (*SelectUtxoResp, error)
- func (*UnimplementedXchainServer) SubmitTx(ctx context.Context, req *SubmitTxReq) (*BaseResp, error)
- type XchainClient
- type XchainServer
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) ProtoMessage ¶
func (*BaseReq) ProtoMessage()
func (*BaseReq) XXX_DiscardUnknown ¶
func (m *BaseReq) XXX_DiscardUnknown()
func (*BaseReq) XXX_Marshal ¶
func (*BaseReq) XXX_Unmarshal ¶
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) GetHeader ¶
func (m *BaseResp) GetHeader() *RespHeader
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) XXX_DiscardUnknown ¶
func (m *BaseResp) XXX_DiscardUnknown()
func (*BaseResp) XXX_Marshal ¶
func (*BaseResp) XXX_Unmarshal ¶
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) GetSelfName ¶
func (*ReqHeader) ProtoMessage ¶
func (*ReqHeader) ProtoMessage()
func (*ReqHeader) XXX_DiscardUnknown ¶
func (m *ReqHeader) XXX_DiscardUnknown()
func (*ReqHeader) XXX_Marshal ¶
func (*ReqHeader) XXX_Unmarshal ¶
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) PreExec ¶
func (*UnimplementedXchainServer) PreExec(ctx context.Context, req *PreExecReq) (*PreExecResp, error)
func (*UnimplementedXchainServer) QueryBlock ¶
func (*UnimplementedXchainServer) QueryBlock(ctx context.Context, req *QueryBlockReq) (*QueryBlockResp, error)
func (*UnimplementedXchainServer) QueryChainStatus ¶
func (*UnimplementedXchainServer) QueryChainStatus(ctx context.Context, req *QueryChainStatusReq) (*QueryChainStatusResp, error)
func (*UnimplementedXchainServer) QueryTx ¶
func (*UnimplementedXchainServer) QueryTx(ctx context.Context, req *QueryTxReq) (*QueryTxResp, error)
func (*UnimplementedXchainServer) SelectUtxo ¶
func (*UnimplementedXchainServer) SelectUtxo(ctx context.Context, req *SelectUtxoReq) (*SelectUtxoResp, error)
func (*UnimplementedXchainServer) SubmitTx ¶
func (*UnimplementedXchainServer) SubmitTx(ctx context.Context, req *SubmitTxReq) (*BaseResp, error)
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.
Click to show internal directories.
Click to hide internal directories.