mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPUtil

type HTTPUtil struct {
	mock.Mock
}

HTTPUtil is an autogenerated mock type for the HTTPUtil type

func (*HTTPUtil) DeleteJSON

func (_m *HTTPUtil) DeleteJSON(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error

DeleteJSON provides a mock function with given fields: ctx, url, headers, req, res

func (*HTTPUtil) DeleteXML

func (_m *HTTPUtil) DeleteXML(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error

DeleteXML provides a mock function with given fields: ctx, url, headers, req, res

func (*HTTPUtil) GetBasicAuth

func (_m *HTTPUtil) GetBasicAuth(r *http.Request) (string, string)

GetBasicAuth provides a mock function with given fields: r

func (*HTTPUtil) GetBodyJSON

func (_m *HTTPUtil) GetBodyJSON(r *http.Request, v interface{}) error

GetBodyJSON provides a mock function with given fields: r, v

func (*HTTPUtil) GetBodyXML

func (_m *HTTPUtil) GetBodyXML(r *http.Request, v interface{}) error

GetBodyXML provides a mock function with given fields: r, v

func (*HTTPUtil) GetJSON

func (_m *HTTPUtil) GetJSON(ctx context.Context, url string, headers map[string]string, res interface{}) error

GetJSON provides a mock function with given fields: ctx, url, headers, res

func (*HTTPUtil) GetParam

func (_m *HTTPUtil) GetParam(r *http.Request, name string) string

GetParam provides a mock function with given fields: r, name

func (*HTTPUtil) GetParamBool

func (_m *HTTPUtil) GetParamBool(r *http.Request, name string) bool

GetParamBool provides a mock function with given fields: r, name

func (*HTTPUtil) GetParamInt

func (_m *HTTPUtil) GetParamInt(r *http.Request, name string) (int, error)

GetParamInt provides a mock function with given fields: r, name

func (*HTTPUtil) GetXML

func (_m *HTTPUtil) GetXML(ctx context.Context, url string, headers map[string]string, res interface{}) error

GetXML provides a mock function with given fields: ctx, url, headers, res

func (*HTTPUtil) PostJSON

func (_m *HTTPUtil) PostJSON(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error

PostJSON provides a mock function with given fields: ctx, url, headers, req, res

func (*HTTPUtil) PostXML

func (_m *HTTPUtil) PostXML(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error

PostXML provides a mock function with given fields: ctx, url, headers, req, res

func (*HTTPUtil) PutJSON

func (_m *HTTPUtil) PutJSON(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error

PutJSON provides a mock function with given fields: ctx, url, headers, req, res

func (*HTTPUtil) PutXML

func (_m *HTTPUtil) PutXML(ctx context.Context, url string, headers map[string]string, req interface{}, res interface{}) error

PutXML provides a mock function with given fields: ctx, url, headers, req, res

func (*HTTPUtil) Request

func (_m *HTTPUtil) Request(ctx context.Context, method string, url string, headers map[string]string, body io.Reader) (*http.Response, error)

Request provides a mock function with given fields: ctx, method, url, headers, body

func (*HTTPUtil) RequestJSON

func (_m *HTTPUtil) RequestJSON(ctx context.Context, method string, url string, headers map[string]string, req interface{}, res interface{}) error

RequestJSON provides a mock function with given fields: ctx, method, url, headers, req, res

func (*HTTPUtil) RequestXML

func (_m *HTTPUtil) RequestXML(ctx context.Context, method string, url string, headers map[string]string, req interface{}, res interface{}) error

RequestXML provides a mock function with given fields: ctx, method, url, headers, req, res

Jump to

Keyboard shortcuts

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