Documentation ¶
Index ¶
- type MockClient
- type MockRequestInformation
- func (m *MockRequestInformation) AddHeaders(headers interface{}) error
- func (m *MockRequestInformation) AddQueryParameters(params interface{}) error
- func (m *MockRequestInformation) GetContent() []byte
- func (m *MockRequestInformation) GetHeaders() core.RequestHeader
- func (m *MockRequestInformation) GetMethod() string
- func (m *MockRequestInformation) SetContent(content []byte, contentType string)
- func (m *MockRequestInformation) SetStreamContent(data []byte)
- func (m *MockRequestInformation) SetUri(uri *url.URL)
- func (m *MockRequestInformation) ToRequest() (*http.Request, error)
- func (m *MockRequestInformation) ToRequestWithContext(ctx context.Context) (*http.Request, error)
- func (m *MockRequestInformation) Url() (string, error)
- type Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
func (*MockClient) GetBaseURL ¶
func (c *MockClient) GetBaseURL() string
func (*MockClient) Send ¶
func (c *MockClient) Send(requestInfo core.RequestInformation, errorMapping core.ErrorMapping) (*http.Response, error)
func (*MockClient) SendWithContext ¶
func (c *MockClient) SendWithContext(ctx context.Context, requestInfo core.RequestInformation, errorMapping core.ErrorMapping) (*http.Response, error)
type MockRequestInformation ¶
func (*MockRequestInformation) AddHeaders ¶
func (m *MockRequestInformation) AddHeaders(headers interface{}) error
func (*MockRequestInformation) AddQueryParameters ¶
func (m *MockRequestInformation) AddQueryParameters(params interface{}) error
func (*MockRequestInformation) GetContent ¶
func (m *MockRequestInformation) GetContent() []byte
func (*MockRequestInformation) GetHeaders ¶
func (m *MockRequestInformation) GetHeaders() core.RequestHeader
func (*MockRequestInformation) GetMethod ¶
func (m *MockRequestInformation) GetMethod() string
func (*MockRequestInformation) SetContent ¶
func (m *MockRequestInformation) SetContent(content []byte, contentType string)
func (*MockRequestInformation) SetStreamContent ¶
func (m *MockRequestInformation) SetStreamContent(data []byte)
func (*MockRequestInformation) SetUri ¶
func (m *MockRequestInformation) SetUri(uri *url.URL)
func (*MockRequestInformation) ToRequest ¶
func (m *MockRequestInformation) ToRequest() (*http.Request, error)
func (*MockRequestInformation) ToRequestWithContext ¶
func (*MockRequestInformation) Url ¶
func (m *MockRequestInformation) Url() (string, error)
Click to show internal directories.
Click to hide internal directories.