mock

package
v0.2.0-fix-docker Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 8 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) (*Client, error)

func (*Client) GetData

func (*Client) GetUser

func (*Client) SubmitTransaction

func (c *Client) SubmitTransaction(urlPath string, tx interface{}) (*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