Documentation ¶
Overview ¶
Package qscc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterQSCCServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQSCCServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QSCCServiceClient) error
- func RegisterQSCCServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQSCCServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QSCCServiceServer) error
- func RegisterQSCCServiceServer(s *grpc.Server, srv QSCCServiceServer)
- type GetBlockByHashRequest
- func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByHashRequest) GetBlockHash() []byte
- func (x *GetBlockByHashRequest) GetChannelName() string
- func (*GetBlockByHashRequest) ProtoMessage()
- func (x *GetBlockByHashRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockByHashRequest) Reset()
- func (x *GetBlockByHashRequest) String() string
- func (m *GetBlockByHashRequest) Validate() error
- func (m *GetBlockByHashRequest) ValidateAll() error
- type GetBlockByHashRequestMultiError
- type GetBlockByHashRequestValidationError
- func (e GetBlockByHashRequestValidationError) Cause() error
- func (e GetBlockByHashRequestValidationError) Error() string
- func (e GetBlockByHashRequestValidationError) ErrorName() string
- func (e GetBlockByHashRequestValidationError) Field() string
- func (e GetBlockByHashRequestValidationError) Key() bool
- func (e GetBlockByHashRequestValidationError) Reason() string
- type GetBlockByNumberRequest
- func (*GetBlockByNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByNumberRequest) GetBlockNumber() int64
- func (x *GetBlockByNumberRequest) GetChannelName() string
- func (*GetBlockByNumberRequest) ProtoMessage()
- func (x *GetBlockByNumberRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockByNumberRequest) Reset()
- func (x *GetBlockByNumberRequest) String() string
- func (m *GetBlockByNumberRequest) Validate() error
- func (m *GetBlockByNumberRequest) ValidateAll() error
- type GetBlockByNumberRequestMultiError
- type GetBlockByNumberRequestValidationError
- func (e GetBlockByNumberRequestValidationError) Cause() error
- func (e GetBlockByNumberRequestValidationError) Error() string
- func (e GetBlockByNumberRequestValidationError) ErrorName() string
- func (e GetBlockByNumberRequestValidationError) Field() string
- func (e GetBlockByNumberRequestValidationError) Key() bool
- func (e GetBlockByNumberRequestValidationError) Reason() string
- type GetBlockByTxIDRequest
- func (*GetBlockByTxIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByTxIDRequest) GetChannelName() string
- func (x *GetBlockByTxIDRequest) GetTxId() string
- func (*GetBlockByTxIDRequest) ProtoMessage()
- func (x *GetBlockByTxIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockByTxIDRequest) Reset()
- func (x *GetBlockByTxIDRequest) String() string
- func (m *GetBlockByTxIDRequest) Validate() error
- func (m *GetBlockByTxIDRequest) ValidateAll() error
- type GetBlockByTxIDRequestMultiError
- type GetBlockByTxIDRequestValidationError
- func (e GetBlockByTxIDRequestValidationError) Cause() error
- func (e GetBlockByTxIDRequestValidationError) Error() string
- func (e GetBlockByTxIDRequestValidationError) ErrorName() string
- func (e GetBlockByTxIDRequestValidationError) Field() string
- func (e GetBlockByTxIDRequestValidationError) Key() bool
- func (e GetBlockByTxIDRequestValidationError) Reason() string
- type GetChainInfoRequest
- func (*GetChainInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetChainInfoRequest) GetChannelName() string
- func (*GetChainInfoRequest) ProtoMessage()
- func (x *GetChainInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetChainInfoRequest) Reset()
- func (x *GetChainInfoRequest) String() string
- func (m *GetChainInfoRequest) Validate() error
- func (m *GetChainInfoRequest) ValidateAll() error
- type GetChainInfoRequestMultiError
- type GetChainInfoRequestValidationError
- func (e GetChainInfoRequestValidationError) Cause() error
- func (e GetChainInfoRequestValidationError) Error() string
- func (e GetChainInfoRequestValidationError) ErrorName() string
- func (e GetChainInfoRequestValidationError) Field() string
- func (e GetChainInfoRequestValidationError) Key() bool
- func (e GetChainInfoRequestValidationError) Reason() string
- type GetTransactionByIDRequest
- func (*GetTransactionByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionByIDRequest) GetChannelName() string
- func (x *GetTransactionByIDRequest) GetTxId() string
- func (*GetTransactionByIDRequest) ProtoMessage()
- func (x *GetTransactionByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetTransactionByIDRequest) Reset()
- func (x *GetTransactionByIDRequest) String() string
- func (m *GetTransactionByIDRequest) Validate() error
- func (m *GetTransactionByIDRequest) ValidateAll() error
- type GetTransactionByIDRequestMultiError
- type GetTransactionByIDRequestValidationError
- func (e GetTransactionByIDRequestValidationError) Cause() error
- func (e GetTransactionByIDRequestValidationError) Error() string
- func (e GetTransactionByIDRequestValidationError) ErrorName() string
- func (e GetTransactionByIDRequestValidationError) Field() string
- func (e GetTransactionByIDRequestValidationError) Key() bool
- func (e GetTransactionByIDRequestValidationError) Reason() string
- type QSCCService
- func (q *QSCCService) GetBlockByHash(ctx context.Context, request *GetBlockByHashRequest) (*common.Block, error)
- func (q *QSCCService) GetBlockByNumber(ctx context.Context, request *GetBlockByNumberRequest) (*common.Block, error)
- func (q *QSCCService) GetBlockByTxID(ctx context.Context, request *GetBlockByTxIDRequest) (*common.Block, error)
- func (q *QSCCService) GetChainInfo(ctx context.Context, request *GetChainInfoRequest) (*common.BlockchainInfo, error)
- func (q *QSCCService) GetTransactionByID(ctx context.Context, request *GetTransactionByIDRequest) (*peer.ProcessedTransaction, error)
- func (q *QSCCService) ServiceDef() *service.Def
- type QSCCServiceClient
- type QSCCServiceServer
- type UnimplementedQSCCServiceServer
- func (*UnimplementedQSCCServiceServer) GetBlockByHash(context.Context, *GetBlockByHashRequest) (*common.Block, error)
- func (*UnimplementedQSCCServiceServer) GetBlockByNumber(context.Context, *GetBlockByNumberRequest) (*common.Block, error)
- func (*UnimplementedQSCCServiceServer) GetBlockByTxID(context.Context, *GetBlockByTxIDRequest) (*common.Block, error)
- func (*UnimplementedQSCCServiceServer) GetChainInfo(context.Context, *GetChainInfoRequest) (*common.BlockchainInfo, error)
- func (*UnimplementedQSCCServiceServer) GetTransactionByID(context.Context, *GetTransactionByIDRequest) (*peer.ProcessedTransaction, error)
Constants ¶
This section is empty.
Variables ¶
var File_systemcc_qscc_qscc_proto protoreflect.FileDescriptor
var Swagger []byte
Functions ¶
func RegisterQSCCServiceHandler ¶
func RegisterQSCCServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterQSCCServiceHandler registers the http handlers for service QSCCService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQSCCServiceHandlerClient ¶
func RegisterQSCCServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QSCCServiceClient) error
RegisterQSCCServiceHandlerClient registers the http handlers for service QSCCService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QSCCServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QSCCServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QSCCServiceClient" to call the correct interceptors.
func RegisterQSCCServiceHandlerFromEndpoint ¶
func RegisterQSCCServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQSCCServiceHandlerFromEndpoint is same as RegisterQSCCServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQSCCServiceHandlerServer ¶
func RegisterQSCCServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QSCCServiceServer) error
RegisterQSCCServiceHandlerServer registers the http handlers for service QSCCService to "mux". UnaryRPC :call QSCCServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQSCCServiceHandlerFromEndpoint instead.
func RegisterQSCCServiceServer ¶
func RegisterQSCCServiceServer(s *grpc.Server, srv QSCCServiceServer)
Types ¶
type GetBlockByHashRequest ¶
type GetBlockByHashRequest struct { ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"` BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // contains filtered or unexported fields }
func (*GetBlockByHashRequest) Descriptor
deprecated
func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByHashRequest.ProtoReflect.Descriptor instead.
func (*GetBlockByHashRequest) GetBlockHash ¶
func (x *GetBlockByHashRequest) GetBlockHash() []byte
func (*GetBlockByHashRequest) GetChannelName ¶
func (x *GetBlockByHashRequest) GetChannelName() string
func (*GetBlockByHashRequest) ProtoMessage ¶
func (*GetBlockByHashRequest) ProtoMessage()
func (*GetBlockByHashRequest) ProtoReflect ¶
func (x *GetBlockByHashRequest) ProtoReflect() protoreflect.Message
func (*GetBlockByHashRequest) Reset ¶
func (x *GetBlockByHashRequest) Reset()
func (*GetBlockByHashRequest) String ¶
func (x *GetBlockByHashRequest) String() string
func (*GetBlockByHashRequest) Validate ¶
func (m *GetBlockByHashRequest) Validate() error
Validate checks the field values on GetBlockByHashRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetBlockByHashRequest) ValidateAll ¶
func (m *GetBlockByHashRequest) ValidateAll() error
ValidateAll checks the field values on GetBlockByHashRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetBlockByHashRequestMultiError, or nil if none found.
type GetBlockByHashRequestMultiError ¶
type GetBlockByHashRequestMultiError []error
GetBlockByHashRequestMultiError is an error wrapping multiple validation errors returned by GetBlockByHashRequest.ValidateAll() if the designated constraints aren't met.
func (GetBlockByHashRequestMultiError) AllErrors ¶
func (m GetBlockByHashRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetBlockByHashRequestMultiError) Error ¶
func (m GetBlockByHashRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetBlockByHashRequestValidationError ¶
type GetBlockByHashRequestValidationError struct {
// contains filtered or unexported fields
}
GetBlockByHashRequestValidationError is the validation error returned by GetBlockByHashRequest.Validate if the designated constraints aren't met.
func (GetBlockByHashRequestValidationError) Cause ¶
func (e GetBlockByHashRequestValidationError) Cause() error
Cause function returns cause value.
func (GetBlockByHashRequestValidationError) Error ¶
func (e GetBlockByHashRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetBlockByHashRequestValidationError) ErrorName ¶
func (e GetBlockByHashRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetBlockByHashRequestValidationError) Field ¶
func (e GetBlockByHashRequestValidationError) Field() string
Field function returns field value.
func (GetBlockByHashRequestValidationError) Key ¶
func (e GetBlockByHashRequestValidationError) Key() bool
Key function returns key value.
func (GetBlockByHashRequestValidationError) Reason ¶
func (e GetBlockByHashRequestValidationError) Reason() string
Reason function returns reason value.
type GetBlockByNumberRequest ¶
type GetBlockByNumberRequest struct { ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"` BlockNumber int64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // contains filtered or unexported fields }
func (*GetBlockByNumberRequest) Descriptor
deprecated
func (*GetBlockByNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByNumberRequest.ProtoReflect.Descriptor instead.
func (*GetBlockByNumberRequest) GetBlockNumber ¶
func (x *GetBlockByNumberRequest) GetBlockNumber() int64
func (*GetBlockByNumberRequest) GetChannelName ¶
func (x *GetBlockByNumberRequest) GetChannelName() string
func (*GetBlockByNumberRequest) ProtoMessage ¶
func (*GetBlockByNumberRequest) ProtoMessage()
func (*GetBlockByNumberRequest) ProtoReflect ¶
func (x *GetBlockByNumberRequest) ProtoReflect() protoreflect.Message
func (*GetBlockByNumberRequest) Reset ¶
func (x *GetBlockByNumberRequest) Reset()
func (*GetBlockByNumberRequest) String ¶
func (x *GetBlockByNumberRequest) String() string
func (*GetBlockByNumberRequest) Validate ¶
func (m *GetBlockByNumberRequest) Validate() error
Validate checks the field values on GetBlockByNumberRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetBlockByNumberRequest) ValidateAll ¶
func (m *GetBlockByNumberRequest) ValidateAll() error
ValidateAll checks the field values on GetBlockByNumberRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetBlockByNumberRequestMultiError, or nil if none found.
type GetBlockByNumberRequestMultiError ¶
type GetBlockByNumberRequestMultiError []error
GetBlockByNumberRequestMultiError is an error wrapping multiple validation errors returned by GetBlockByNumberRequest.ValidateAll() if the designated constraints aren't met.
func (GetBlockByNumberRequestMultiError) AllErrors ¶
func (m GetBlockByNumberRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetBlockByNumberRequestMultiError) Error ¶
func (m GetBlockByNumberRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetBlockByNumberRequestValidationError ¶
type GetBlockByNumberRequestValidationError struct {
// contains filtered or unexported fields
}
GetBlockByNumberRequestValidationError is the validation error returned by GetBlockByNumberRequest.Validate if the designated constraints aren't met.
func (GetBlockByNumberRequestValidationError) Cause ¶
func (e GetBlockByNumberRequestValidationError) Cause() error
Cause function returns cause value.
func (GetBlockByNumberRequestValidationError) Error ¶
func (e GetBlockByNumberRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetBlockByNumberRequestValidationError) ErrorName ¶
func (e GetBlockByNumberRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetBlockByNumberRequestValidationError) Field ¶
func (e GetBlockByNumberRequestValidationError) Field() string
Field function returns field value.
func (GetBlockByNumberRequestValidationError) Key ¶
func (e GetBlockByNumberRequestValidationError) Key() bool
Key function returns key value.
func (GetBlockByNumberRequestValidationError) Reason ¶
func (e GetBlockByNumberRequestValidationError) Reason() string
Reason function returns reason value.
type GetBlockByTxIDRequest ¶
type GetBlockByTxIDRequest struct { ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"` TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // contains filtered or unexported fields }
func (*GetBlockByTxIDRequest) Descriptor
deprecated
func (*GetBlockByTxIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByTxIDRequest.ProtoReflect.Descriptor instead.
func (*GetBlockByTxIDRequest) GetChannelName ¶
func (x *GetBlockByTxIDRequest) GetChannelName() string
func (*GetBlockByTxIDRequest) GetTxId ¶
func (x *GetBlockByTxIDRequest) GetTxId() string
func (*GetBlockByTxIDRequest) ProtoMessage ¶
func (*GetBlockByTxIDRequest) ProtoMessage()
func (*GetBlockByTxIDRequest) ProtoReflect ¶
func (x *GetBlockByTxIDRequest) ProtoReflect() protoreflect.Message
func (*GetBlockByTxIDRequest) Reset ¶
func (x *GetBlockByTxIDRequest) Reset()
func (*GetBlockByTxIDRequest) String ¶
func (x *GetBlockByTxIDRequest) String() string
func (*GetBlockByTxIDRequest) Validate ¶
func (m *GetBlockByTxIDRequest) Validate() error
Validate checks the field values on GetBlockByTxIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetBlockByTxIDRequest) ValidateAll ¶
func (m *GetBlockByTxIDRequest) ValidateAll() error
ValidateAll checks the field values on GetBlockByTxIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetBlockByTxIDRequestMultiError, or nil if none found.
type GetBlockByTxIDRequestMultiError ¶
type GetBlockByTxIDRequestMultiError []error
GetBlockByTxIDRequestMultiError is an error wrapping multiple validation errors returned by GetBlockByTxIDRequest.ValidateAll() if the designated constraints aren't met.
func (GetBlockByTxIDRequestMultiError) AllErrors ¶
func (m GetBlockByTxIDRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetBlockByTxIDRequestMultiError) Error ¶
func (m GetBlockByTxIDRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetBlockByTxIDRequestValidationError ¶
type GetBlockByTxIDRequestValidationError struct {
// contains filtered or unexported fields
}
GetBlockByTxIDRequestValidationError is the validation error returned by GetBlockByTxIDRequest.Validate if the designated constraints aren't met.
func (GetBlockByTxIDRequestValidationError) Cause ¶
func (e GetBlockByTxIDRequestValidationError) Cause() error
Cause function returns cause value.
func (GetBlockByTxIDRequestValidationError) Error ¶
func (e GetBlockByTxIDRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetBlockByTxIDRequestValidationError) ErrorName ¶
func (e GetBlockByTxIDRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetBlockByTxIDRequestValidationError) Field ¶
func (e GetBlockByTxIDRequestValidationError) Field() string
Field function returns field value.
func (GetBlockByTxIDRequestValidationError) Key ¶
func (e GetBlockByTxIDRequestValidationError) Key() bool
Key function returns key value.
func (GetBlockByTxIDRequestValidationError) Reason ¶
func (e GetBlockByTxIDRequestValidationError) Reason() string
Reason function returns reason value.
type GetChainInfoRequest ¶
type GetChainInfoRequest struct { ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"` // contains filtered or unexported fields }
func (*GetChainInfoRequest) Descriptor
deprecated
func (*GetChainInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChainInfoRequest.ProtoReflect.Descriptor instead.
func (*GetChainInfoRequest) GetChannelName ¶
func (x *GetChainInfoRequest) GetChannelName() string
func (*GetChainInfoRequest) ProtoMessage ¶
func (*GetChainInfoRequest) ProtoMessage()
func (*GetChainInfoRequest) ProtoReflect ¶
func (x *GetChainInfoRequest) ProtoReflect() protoreflect.Message
func (*GetChainInfoRequest) Reset ¶
func (x *GetChainInfoRequest) Reset()
func (*GetChainInfoRequest) String ¶
func (x *GetChainInfoRequest) String() string
func (*GetChainInfoRequest) Validate ¶
func (m *GetChainInfoRequest) Validate() error
Validate checks the field values on GetChainInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetChainInfoRequest) ValidateAll ¶
func (m *GetChainInfoRequest) ValidateAll() error
ValidateAll checks the field values on GetChainInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetChainInfoRequestMultiError, or nil if none found.
type GetChainInfoRequestMultiError ¶
type GetChainInfoRequestMultiError []error
GetChainInfoRequestMultiError is an error wrapping multiple validation errors returned by GetChainInfoRequest.ValidateAll() if the designated constraints aren't met.
func (GetChainInfoRequestMultiError) AllErrors ¶
func (m GetChainInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetChainInfoRequestMultiError) Error ¶
func (m GetChainInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetChainInfoRequestValidationError ¶
type GetChainInfoRequestValidationError struct {
// contains filtered or unexported fields
}
GetChainInfoRequestValidationError is the validation error returned by GetChainInfoRequest.Validate if the designated constraints aren't met.
func (GetChainInfoRequestValidationError) Cause ¶
func (e GetChainInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetChainInfoRequestValidationError) Error ¶
func (e GetChainInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetChainInfoRequestValidationError) ErrorName ¶
func (e GetChainInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetChainInfoRequestValidationError) Field ¶
func (e GetChainInfoRequestValidationError) Field() string
Field function returns field value.
func (GetChainInfoRequestValidationError) Key ¶
func (e GetChainInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetChainInfoRequestValidationError) Reason ¶
func (e GetChainInfoRequestValidationError) Reason() string
Reason function returns reason value.
type GetTransactionByIDRequest ¶
type GetTransactionByIDRequest struct { ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"` TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // contains filtered or unexported fields }
func (*GetTransactionByIDRequest) Descriptor
deprecated
func (*GetTransactionByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionByIDRequest.ProtoReflect.Descriptor instead.
func (*GetTransactionByIDRequest) GetChannelName ¶
func (x *GetTransactionByIDRequest) GetChannelName() string
func (*GetTransactionByIDRequest) GetTxId ¶
func (x *GetTransactionByIDRequest) GetTxId() string
func (*GetTransactionByIDRequest) ProtoMessage ¶
func (*GetTransactionByIDRequest) ProtoMessage()
func (*GetTransactionByIDRequest) ProtoReflect ¶
func (x *GetTransactionByIDRequest) ProtoReflect() protoreflect.Message
func (*GetTransactionByIDRequest) Reset ¶
func (x *GetTransactionByIDRequest) Reset()
func (*GetTransactionByIDRequest) String ¶
func (x *GetTransactionByIDRequest) String() string
func (*GetTransactionByIDRequest) Validate ¶
func (m *GetTransactionByIDRequest) Validate() error
Validate checks the field values on GetTransactionByIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetTransactionByIDRequest) ValidateAll ¶
func (m *GetTransactionByIDRequest) ValidateAll() error
ValidateAll checks the field values on GetTransactionByIDRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTransactionByIDRequestMultiError, or nil if none found.
type GetTransactionByIDRequestMultiError ¶
type GetTransactionByIDRequestMultiError []error
GetTransactionByIDRequestMultiError is an error wrapping multiple validation errors returned by GetTransactionByIDRequest.ValidateAll() if the designated constraints aren't met.
func (GetTransactionByIDRequestMultiError) AllErrors ¶
func (m GetTransactionByIDRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTransactionByIDRequestMultiError) Error ¶
func (m GetTransactionByIDRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTransactionByIDRequestValidationError ¶
type GetTransactionByIDRequestValidationError struct {
// contains filtered or unexported fields
}
GetTransactionByIDRequestValidationError is the validation error returned by GetTransactionByIDRequest.Validate if the designated constraints aren't met.
func (GetTransactionByIDRequestValidationError) Cause ¶
func (e GetTransactionByIDRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTransactionByIDRequestValidationError) Error ¶
func (e GetTransactionByIDRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTransactionByIDRequestValidationError) ErrorName ¶
func (e GetTransactionByIDRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTransactionByIDRequestValidationError) Field ¶
func (e GetTransactionByIDRequestValidationError) Field() string
Field function returns field value.
func (GetTransactionByIDRequestValidationError) Key ¶
func (e GetTransactionByIDRequestValidationError) Key() bool
Key function returns key value.
func (GetTransactionByIDRequestValidationError) Reason ¶
func (e GetTransactionByIDRequestValidationError) Reason() string
Reason function returns reason value.
type QSCCService ¶
type QSCCService struct { UnimplementedQSCCServiceServer Querier *tx.ProtoQuerier }
func NewQSCC ¶
func NewQSCC(querier api.Querier) *QSCCService
func (*QSCCService) GetBlockByHash ¶
func (q *QSCCService) GetBlockByHash(ctx context.Context, request *GetBlockByHashRequest) (*common.Block, error)
func (*QSCCService) GetBlockByNumber ¶
func (q *QSCCService) GetBlockByNumber(ctx context.Context, request *GetBlockByNumberRequest) (*common.Block, error)
func (*QSCCService) GetBlockByTxID ¶
func (q *QSCCService) GetBlockByTxID(ctx context.Context, request *GetBlockByTxIDRequest) (*common.Block, error)
func (*QSCCService) GetChainInfo ¶
func (q *QSCCService) GetChainInfo(ctx context.Context, request *GetChainInfoRequest) (*common.BlockchainInfo, error)
func (*QSCCService) GetTransactionByID ¶
func (q *QSCCService) GetTransactionByID(ctx context.Context, request *GetTransactionByIDRequest) (*peer.ProcessedTransaction, error)
func (*QSCCService) ServiceDef ¶
func (q *QSCCService) ServiceDef() *service.Def
type QSCCServiceClient ¶
type QSCCServiceClient interface { // GetChainInfo allows getting common info about channel blockchain GetChainInfo(ctx context.Context, in *GetChainInfoRequest, opts ...grpc.CallOption) (*common.BlockchainInfo, error) // GetBlockByNumber allows getting block by number GetBlockByNumber(ctx context.Context, in *GetBlockByNumberRequest, opts ...grpc.CallOption) (*common.Block, error) // GetBlockByHash allows getting block by hash GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*common.Block, error) // GetBlockByTxID allows getting block by transaction GetBlockByTxID(ctx context.Context, in *GetBlockByTxIDRequest, opts ...grpc.CallOption) (*common.Block, error) // GetTransactionByID allows getting transaction by id GetTransactionByID(ctx context.Context, in *GetTransactionByIDRequest, opts ...grpc.CallOption) (*peer.ProcessedTransaction, error) }
QSCCServiceClient is the client API for QSCCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQSCCServiceClient ¶
func NewQSCCServiceClient(cc grpc.ClientConnInterface) QSCCServiceClient
type QSCCServiceServer ¶
type QSCCServiceServer interface { // GetChainInfo allows getting common info about channel blockchain GetChainInfo(context.Context, *GetChainInfoRequest) (*common.BlockchainInfo, error) // GetBlockByNumber allows getting block by number GetBlockByNumber(context.Context, *GetBlockByNumberRequest) (*common.Block, error) // GetBlockByHash allows getting block by hash GetBlockByHash(context.Context, *GetBlockByHashRequest) (*common.Block, error) // GetBlockByTxID allows getting block by transaction GetBlockByTxID(context.Context, *GetBlockByTxIDRequest) (*common.Block, error) // GetTransactionByID allows getting transaction by id GetTransactionByID(context.Context, *GetTransactionByIDRequest) (*peer.ProcessedTransaction, error) }
QSCCServiceServer is the server API for QSCCService service.
type UnimplementedQSCCServiceServer ¶
type UnimplementedQSCCServiceServer struct { }
UnimplementedQSCCServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQSCCServiceServer) GetBlockByHash ¶
func (*UnimplementedQSCCServiceServer) GetBlockByHash(context.Context, *GetBlockByHashRequest) (*common.Block, error)
func (*UnimplementedQSCCServiceServer) GetBlockByNumber ¶
func (*UnimplementedQSCCServiceServer) GetBlockByNumber(context.Context, *GetBlockByNumberRequest) (*common.Block, error)
func (*UnimplementedQSCCServiceServer) GetBlockByTxID ¶
func (*UnimplementedQSCCServiceServer) GetBlockByTxID(context.Context, *GetBlockByTxIDRequest) (*common.Block, error)
func (*UnimplementedQSCCServiceServer) GetChainInfo ¶
func (*UnimplementedQSCCServiceServer) GetChainInfo(context.Context, *GetChainInfoRequest) (*common.BlockchainInfo, error)
func (*UnimplementedQSCCServiceServer) GetTransactionByID ¶
func (*UnimplementedQSCCServiceServer) GetTransactionByID(context.Context, *GetTransactionByIDRequest) (*peer.ProcessedTransaction, error)