Documentation ¶
Index ¶
- type Client
- func (_m *Client) Call(request *http.Request, structure interface{}) (*models.ResponseScheme, error)
- func (_m *Client) NewFormRequest(ctx context.Context, method string, apiEndpoint string, contentType string, ...) (*http.Request, error)
- func (_m *Client) NewRequest(ctx context.Context, method string, apiEndpoint string, payload io.Reader) (*http.Request, error)
- func (_m *Client) TransformStructToReader(structure interface{}) (io.Reader, error)
- func (_m *Client) TransformTheHTTPResponse(response *http.Response, structure interface{}) (*models.ResponseScheme, error)
- type HttpClient
- type NewClientT
- type NewHttpClientT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t NewClientT) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) Call ¶
func (_m *Client) Call(request *http.Request, structure interface{}) (*models.ResponseScheme, error)
Call provides a mock function with given fields: request, structure
func (*Client) NewFormRequest ¶
func (_m *Client) NewFormRequest(ctx context.Context, method string, apiEndpoint string, contentType string, payload io.Reader) (*http.Request, error)
NewFormRequest provides a mock function with given fields: ctx, method, apiEndpoint, contentType, payload
func (*Client) NewRequest ¶
func (_m *Client) NewRequest(ctx context.Context, method string, apiEndpoint string, payload io.Reader) (*http.Request, error)
NewRequest provides a mock function with given fields: ctx, method, apiEndpoint, payload
func (*Client) TransformStructToReader ¶
TransformStructToReader provides a mock function with given fields: structure
func (*Client) TransformTheHTTPResponse ¶
func (_m *Client) TransformTheHTTPResponse(response *http.Response, structure interface{}) (*models.ResponseScheme, error)
TransformTheHTTPResponse provides a mock function with given fields: response, structure
type HttpClient ¶
HttpClient is an autogenerated mock type for the HttpClient type
func NewHttpClient ¶
func NewHttpClient(t NewHttpClientT) *HttpClient
NewHttpClient creates a new instance of HttpClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.