Documentation ¶
Overview ¶
Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- type Client
- func (c *Client) ExecuteJSONQuery(urlPath string, e *types.DataJSONQuery, signature []byte) (*types.DataQueryResponseEnvelope, error)
- func (c *Client) GetAugmentedBlockHeader(e *types.GetBlockQueryEnvelope) (*types.GetAugmentedBlockHeaderResponseEnvelope, error)
- func (c *Client) GetBlockHeader(e *types.GetBlockQueryEnvelope, forceParam bool) (*types.GetBlockResponseEnvelope, error)
- func (c *Client) GetClusterStatus(e *types.GetClusterStatusQueryEnvelope) (*types.GetClusterStatusResponseEnvelope, error)
- func (c *Client) GetConfig(e *types.GetConfigQueryEnvelope) (*types.GetConfigResponseEnvelope, error)
- func (c *Client) GetDBIndex(e *types.GetDBIndexQueryEnvelope) (*types.GetDBIndexResponseEnvelope, error)
- func (c *Client) GetDBStatus(e *types.GetDBStatusQueryEnvelope) (*types.GetDBStatusResponseEnvelope, error)
- func (c *Client) GetData(e *types.GetDataQueryEnvelope) (*types.GetDataResponseEnvelope, error)
- func (c *Client) GetDataDeletedByUser(urlPath string, e *types.GetDataDeletedByQueryEnvelope) (*types.GetDataProvenanceResponseEnvelope, error)
- func (c *Client) GetDataProof(e *types.GetDataProofQueryEnvelope) (*types.GetDataProofResponseEnvelope, error)
- func (c *Client) GetDataRange(e *types.GetDataQueryEnvelope, startKey, endKey string, limit uint64) (*types.GetDataRangeResponseEnvelope, error)
- func (c *Client) GetDataReadByUser(urlPath string, e *types.GetDataReadByQueryEnvelope) (*types.GetDataProvenanceResponseEnvelope, error)
- func (c *Client) GetDataReaders(urlPath string, e *types.GetDataReadersQueryEnvelope) (*types.GetDataReadersResponseEnvelope, error)
- func (c *Client) GetDataWriters(urlPath string, e *types.GetDataWritersQueryEnvelope) (*types.GetDataWritersResponseEnvelope, error)
- func (c *Client) GetDataWrittenByUser(urlPath string, e *types.GetDataWrittenByQueryEnvelope) (*types.GetDataProvenanceResponseEnvelope, error)
- func (c *Client) GetHistoricalData(urlPath string, e *types.GetHistoricalDataQueryEnvelope) (*types.GetHistoricalDataResponseEnvelope, error)
- func (c *Client) GetLastBlock(e *types.GetLastBlockQueryEnvelope) (*types.GetBlockResponseEnvelope, error)
- func (c *Client) GetLastConfigBlockStatus(e *types.GeConfigBlockQueryEnvelope) (*types.GetConfigBlockResponseEnvelope, error)
- func (c *Client) GetLedgerPath(e *types.GetLedgerPathQueryEnvelope) (*types.GetLedgerPathResponseEnvelope, error)
- func (c *Client) GetNodeConfig(e *types.GetNodeConfigQueryEnvelope) (*types.GetNodeConfigResponseEnvelope, error)
- func (c *Client) GetTxIDsSubmitedBy(urlPath string, e *types.GetTxIDsSubmittedByQueryEnvelope) (*types.GetTxIDsSubmittedByResponseEnvelope, error)
- func (c *Client) GetTxProof(e *types.GetTxProofQueryEnvelope) (*types.GetTxProofResponseEnvelope, error)
- func (c *Client) GetTxReceipt(e *types.GetTxReceiptQueryEnvelope) (*types.TxReceiptResponseEnvelope, error)
- func (c *Client) GetUser(e *types.GetUserQueryEnvelope) (*types.GetUserResponseEnvelope, error)
- func (c *Client) SubmitTransaction(urlPath string, tx interface{}, serverTimeout time.Duration) (*http.Response, error)
- type ResponseErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { RawURL string BaseURL *url.URL UserAgent string // contains filtered or unexported fields }
func NewRESTClient ¶
func (*Client) ExecuteJSONQuery ¶ added in v0.2.4
func (c *Client) ExecuteJSONQuery(urlPath string, e *types.DataJSONQuery, signature []byte) (*types.DataQueryResponseEnvelope, error)
func (*Client) GetAugmentedBlockHeader ¶ added in v0.2.4
func (c *Client) GetAugmentedBlockHeader(e *types.GetBlockQueryEnvelope) (*types.GetAugmentedBlockHeaderResponseEnvelope, error)
func (*Client) GetBlockHeader ¶ added in v0.2.4
func (c *Client) GetBlockHeader(e *types.GetBlockQueryEnvelope, forceParam bool) (*types.GetBlockResponseEnvelope, error)
func (*Client) GetClusterStatus ¶ added in v0.2.2
func (c *Client) GetClusterStatus(e *types.GetClusterStatusQueryEnvelope) (*types.GetClusterStatusResponseEnvelope, error)
func (*Client) GetConfig ¶
func (c *Client) GetConfig(e *types.GetConfigQueryEnvelope) (*types.GetConfigResponseEnvelope, error)
func (*Client) GetDBIndex ¶ added in v0.2.3
func (c *Client) GetDBIndex(e *types.GetDBIndexQueryEnvelope) (*types.GetDBIndexResponseEnvelope, error)
func (*Client) GetDBStatus ¶
func (c *Client) GetDBStatus(e *types.GetDBStatusQueryEnvelope) (*types.GetDBStatusResponseEnvelope, error)
func (*Client) GetData ¶
func (c *Client) GetData(e *types.GetDataQueryEnvelope) (*types.GetDataResponseEnvelope, error)
func (*Client) GetDataDeletedByUser ¶ added in v0.2.4
func (c *Client) GetDataDeletedByUser(urlPath string, e *types.GetDataDeletedByQueryEnvelope) (*types.GetDataProvenanceResponseEnvelope, error)
func (*Client) GetDataProof ¶ added in v0.2.5
func (c *Client) GetDataProof(e *types.GetDataProofQueryEnvelope) (*types.GetDataProofResponseEnvelope, error)
func (*Client) GetDataRange ¶ added in v0.2.5
func (c *Client) GetDataRange(e *types.GetDataQueryEnvelope, startKey, endKey string, limit uint64) (*types.GetDataRangeResponseEnvelope, error)
func (*Client) GetDataReadByUser ¶ added in v0.2.4
func (c *Client) GetDataReadByUser(urlPath string, e *types.GetDataReadByQueryEnvelope) (*types.GetDataProvenanceResponseEnvelope, error)
func (*Client) GetDataReaders ¶ added in v0.2.4
func (c *Client) GetDataReaders(urlPath string, e *types.GetDataReadersQueryEnvelope) (*types.GetDataReadersResponseEnvelope, error)
func (*Client) GetDataWriters ¶ added in v0.2.4
func (c *Client) GetDataWriters(urlPath string, e *types.GetDataWritersQueryEnvelope) (*types.GetDataWritersResponseEnvelope, error)
func (*Client) GetDataWrittenByUser ¶ added in v0.2.4
func (c *Client) GetDataWrittenByUser(urlPath string, e *types.GetDataWrittenByQueryEnvelope) (*types.GetDataProvenanceResponseEnvelope, error)
func (*Client) GetHistoricalData ¶
func (c *Client) GetHistoricalData(urlPath string, e *types.GetHistoricalDataQueryEnvelope) (*types.GetHistoricalDataResponseEnvelope, error)
func (*Client) GetLastBlock ¶ added in v0.2.4
func (c *Client) GetLastBlock(e *types.GetLastBlockQueryEnvelope) (*types.GetBlockResponseEnvelope, error)
func (*Client) GetLastConfigBlockStatus ¶ added in v0.2.4
func (c *Client) GetLastConfigBlockStatus(e *types.GeConfigBlockQueryEnvelope) (*types.GetConfigBlockResponseEnvelope, error)
func (*Client) GetLedgerPath ¶ added in v0.2.4
func (c *Client) GetLedgerPath(e *types.GetLedgerPathQueryEnvelope) (*types.GetLedgerPathResponseEnvelope, error)
func (*Client) GetNodeConfig ¶
func (c *Client) GetNodeConfig(e *types.GetNodeConfigQueryEnvelope) (*types.GetNodeConfigResponseEnvelope, error)
func (*Client) GetTxIDsSubmitedBy ¶ added in v0.2.4
func (c *Client) GetTxIDsSubmitedBy(urlPath string, e *types.GetTxIDsSubmittedByQueryEnvelope) (*types.GetTxIDsSubmittedByResponseEnvelope, error)
func (*Client) GetTxProof ¶ added in v0.2.4
func (c *Client) GetTxProof(e *types.GetTxProofQueryEnvelope) (*types.GetTxProofResponseEnvelope, error)
func (*Client) GetTxReceipt ¶ added in v0.2.5
func (c *Client) GetTxReceipt(e *types.GetTxReceiptQueryEnvelope) (*types.TxReceiptResponseEnvelope, error)
func (*Client) GetUser ¶
func (c *Client) GetUser(e *types.GetUserQueryEnvelope) (*types.GetUserResponseEnvelope, error)
type ResponseErr ¶
type ResponseErr struct {
Error string `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.