client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeadersRoundTripper added in v0.4.0

func NewHeadersRoundTripper(headers map[string]string, rt http.RoundTripper) http.RoundTripper

NewHeadersRoundTripper adds the given headers to a request

Types

type Client

type Client struct {
	URL          string
	Client       api.Client
	API          v1.API
	RoundTripper http.RoundTripper
}

func NewClient

func NewClient(url string, rt http.RoundTripper) *Client

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) GetStatus

func (c *Client) GetStatus(ctx context.Context, endpoint string) (returncode int, statuscode int, body string, err error)

Jump to

Keyboard shortcuts

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