http

package
v0.0.0-...-d88ec87 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 2 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 interface {
	Do(request *http.Request) (*http.Response, error)
}

Client is an interface for a http client

func NewDiscoveryHTTPClient

func NewDiscoveryHTTPClient(discoveryClient discovery.Client, httpClient *http.Client) Client

NewDiscoveryHTTPClient creates an instance of DicoveryHTTPClient

type DiscoveryHTTPClient

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

DiscoveryHTTPClient is a dicovery based http client

func (*DiscoveryHTTPClient) Do

func (httpClient *DiscoveryHTTPClient) Do(request *http.Request) (*http.Response, error)

Do resolves the service address and makes the request

Jump to

Keyboard shortcuts

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