client

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultClientTimeout = 15 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c *ClientConfig) (*Client, error)

func (*Client) Do

func (c *Client) Do(r *http.Request) (*http.Response, error)

func (*Client) NewRequest

func (c *Client) NewRequest(method string, path string, body io.Reader) (*http.Request, error)

func (*Client) PerformRequest

func (c *Client) PerformRequest(method string, path string, body io.Reader) (*http.Response, error)

type ClientConfig

type ClientConfig struct {
	Logger  hclog.Logger
	Address string
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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