net

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 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 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) 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(ctx context.Context, url string) (*http.Response, error)

Get provides a mock function with given fields: ctx, 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(ctx context.Context, url string, contentType string, body io.Reader) (*http.Response, error)

Post provides a mock function with given fields: ctx, 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