Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-2.0 Imports: 8 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