mock

package
v0.0.0-...-98d8cd4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

func (*Client) Do

func (m *Client) Do(req *http.Request) (*http.Response, error)

func (*Client) NewGzippedQuery

func (m *Client) NewGzippedQuery(query string) api.Request

func (*Client) NewGzippedRequest

func (m *Client) NewGzippedRequest(query string, vars map[string]interface{}) api.Request

func (*Client) NewHTTPRequest

func (m *Client) NewHTTPRequest(ctx context.Context, method, path string, body io.Reader) (*http.Request, error)

func (*Client) NewQuery

func (m *Client) NewQuery(query string) api.Request

func (*Client) NewRequest

func (m *Client) NewRequest(query string, vars map[string]interface{}) api.Request

type Request

type Request struct {
	mock.Mock
	Response string
}

func (*Request) Do

func (r *Request) Do(ctx context.Context, result interface{}) (bool, error)

func (*Request) DoRaw

func (r *Request) DoRaw(ctx context.Context, result interface{}) (bool, error)

Jump to

Keyboard shortcuts

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