client

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) DoRequest

func (c *Client) DoRequest(req *http.Request, tlsConfig *tls.Config) (res httpResponse.Interface, err error)

nolint

type Interface

type Interface interface {
	DoRequest(req *http.Request, tlsConfig *tls.Config) (httpResponse.Interface, error)
}

func NewHTTPClient

func NewHTTPClient(timeout int) Interface

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) DoRequest

func (m *Mock) DoRequest(req *http.Request, tlsConfig *tls.Config) (httpResponse.Interface, error)

Jump to

Keyboard shortcuts

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