mock

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

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 NewRESTClient(rawurl string, checkRedirect func(req *http.Request, via []*http.Request) error, tlsConfig *tls.Config) (*Client, error)

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 (*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 (*Client) GetDBIndex added in v0.2.3

func (*Client) GetData

func (*Client) GetDataDeletedByUser added in v0.2.4

func (*Client) GetDataProof added in v0.2.5

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 (*Client) GetDataReaders added in v0.2.4

func (*Client) GetDataWriters added in v0.2.4

func (*Client) GetDataWrittenByUser added in v0.2.4

func (*Client) GetLastBlock added in v0.2.4

func (*Client) GetLastConfigBlockStatus added in v0.2.4

func (*Client) GetLedgerPath added in v0.2.4

func (*Client) GetTxIDsSubmitedBy added in v0.2.4

func (*Client) GetTxProof added in v0.2.4

func (*Client) GetTxReceipt added in v0.2.5

func (*Client) GetUser

func (*Client) SubmitTransaction

func (c *Client) SubmitTransaction(urlPath string, tx interface{}, serverTimeout time.Duration) (*http.Response, error)

SubmitTransaction to the server. If the returned error is nil, the response body must be closed after consuming it.

type ResponseErr

type ResponseErr struct {
	Error string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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