Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + type Client struct + func New(channelProvider context.ChannelProvider, opts ...ClientOption) (*Client, error) + func (c *Client) QueryBlock(blockNumber uint64, options ...RequestOption) (*common.Block, error) + func (c *Client) QueryBlockByHash(blockHash []byte, options ...RequestOption) (*common.Block, error) + func (c *Client) QueryBlockByTxID(txID fab.TransactionID, options ...RequestOption) (*common.Block, error) + func (c *Client) QueryConfig(options ...RequestOption) (fab.ChannelCfg, error) + func (c *Client) QueryConfigBlock(options ...RequestOption) (*common.Block, error) + func (c *Client) QueryInfo(options ...RequestOption) (*fab.BlockchainInfoResponse, error) + func (c *Client) QueryTransaction(transactionID fab.TransactionID, options ...RequestOption) (*pb.ProcessedTransaction, error) + type ClientOption func(*Client) error + func WithDefaultTargetFilter(filter fab.TargetFilter) ClientOption + type RequestOption func(ctx context.Client, opts *requestOptions) error + func WithMaxTargets(maxTargets int) RequestOption + func WithMinTargets(minTargets int) RequestOption + func WithParentContext(parentContext reqContext.Context) RequestOption + func WithTargetEndpoints(keys ...string) RequestOption + func WithTargetFilter(targetFilter fab.TargetFilter) RequestOption + func WithTargets(targets ...fab.Peer) RequestOption + func WithTimeout(timeoutType fab.TimeoutType, timeout time.Duration) RequestOption