mock

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 12 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) GetClusterStatus added in v0.2.2

func (*Client) GetDBIndex added in v0.2.3

func (*Client) GetData

func (*Client) GetLastBlockStatus added in v0.2.2

func (c *Client) GetLastBlockStatus(e *types.GetBlockQueryEnvelope) (*types.GetBlockResponseEnvelope, error)

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