db

package
v0.0.0-...-c513f7b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 4 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 {
	Client   influxdbV2.Client
	WriteAPI api.WriteAPIBlocking
	QueryAPI api.QueryAPI
}

func NewClient

func NewClient(baseURL, token, org, bucket string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) QueryData

func (c *Client) QueryData(query string) (*api.QueryTableResult, error)

func (*Client) WriteData

func (c *Client) WriteData(measurement string, tags map[string]string, fields map[string]interface{}, time time.Time) error

Jump to

Keyboard shortcuts

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