net

package
v0.0.0-...-9571a26 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	mock.Mock
}

HTTPClient is an autogenerated mock type for the HTTPClient type

func (*HTTPClient) Close

func (_m *HTTPClient) Close()

Close provides a mock function with given fields:

func (*HTTPClient) Do

func (_m *HTTPClient) Do(_a0 *http.Request) (*http.Response, error)

Do provides a mock function with given fields: _a0

func (*HTTPClient) Get

func (_m *HTTPClient) Get(url string) (*http.Response, error)

Get provides a mock function with given fields: url

func (*HTTPClient) GetUrl

func (_m *HTTPClient) GetUrl(endpoint string) string

GetUrl provides a mock function with given fields: endpoint

func (*HTTPClient) Post

func (_m *HTTPClient) Post(url string, contentType string, body io.Reader) (*http.Response, error)

Post provides a mock function with given fields: url, contentType, body

type HTTPClientFactory

type HTTPClientFactory struct {
	mock.Mock
}

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

type TransportFactory struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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