client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-2.0 Imports: 7 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 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