client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 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.2.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 {
	Organization string
	URL          string
	Token        string
	Client       *http.Client
}

Client is a small wrapper for HTTP connections, that is configured and used in the subcommands.

func NewClient

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

func (*Client) Version

func (c *Client) Version() (influxdb.APIVersion, error)

Version returns the Version of the InfluxDB API.

Jump to

Keyboard shortcuts

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