client

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*api.API
	Transport transport.Interface
}

func NewClient

func NewClient(cfg *Config) (*Client, error)

func NewDefaultClient

func NewDefaultClient() (*Client, error)

func (*Client) Perform

func (c *Client) Perform(req *http.Request) (*http.Response, error)

type Config

type Config struct {
	Servers            []string
	Username           string
	Password           string
	MaxRetries         int
	Transport          http.RoundTripper
	ConnectionPoolFunc func([]*transport.Connection, transport.Selector) transport.ConnectionPool
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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