Documentation ¶
Index ¶
- type HTTPClient
- func (_m *HTTPClient) BasicAuth() string
- func (_m *HTTPClient) Close()
- func (_m *HTTPClient) Do(_a0 *http.Request) (*http.Response, error)
- func (_m *HTTPClient) Get(ctx context.Context, url string) (*http.Response, error)
- func (_m *HTTPClient) GetUrl(endpoint string) string
- func (_m *HTTPClient) Post(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)
- type HTTPClientFactory
- type TransportFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
HTTPClient is an autogenerated mock type for the HTTPClient type
func NewHTTPClient ¶ added in v0.1.0
func NewHTTPClient(t mockConstructorTestingTNewHTTPClient) *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.
func (*HTTPClient) BasicAuth ¶ added in v0.0.5
func (_m *HTTPClient) BasicAuth() string
BasicAuth provides a mock function with given fields:
func (*HTTPClient) Close ¶
func (_m *HTTPClient) Close()
Close provides a mock function with given fields:
func (*HTTPClient) GetUrl ¶
func (_m *HTTPClient) GetUrl(endpoint string) string
GetUrl provides a mock function with given fields: endpoint
type HTTPClientFactory ¶
HTTPClientFactory is an autogenerated mock type for the HTTPClientFactory type
func (*HTTPClientFactory) NewHTTPClient ¶
func (_m *HTTPClientFactory) NewHTTPClient(options net.Options, logger log.Logger) (*net.Client, error)
NewHTTPClient provides a mock function with given fields: options, logger
type TransportFactory ¶
TransportFactory is an autogenerated mock type for the TransportFactory type
func (*TransportFactory) NewTransport ¶
func (_m *TransportFactory) NewTransport(options net.Options) *net.Transport
NewTransport provides a mock function with given fields: options