database

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-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 InfluxDB

type InfluxDB struct {
	// contains filtered or unexported fields
}

func NewInfluxDBClient

func NewInfluxDBClient(url, user, password, database string) (*InfluxDB, error)

func (InfluxDB) Add

func (db InfluxDB) Add(datapoints []monitor.DeviceDataPoint) error

type InfluxDBv2 added in v1.0.0

type InfluxDBv2 struct {
	// contains filtered or unexported fields
}

func NewInfluxDBv2Client added in v1.0.0

func NewInfluxDBv2Client(url string, token string, org string, bucket string) (*InfluxDBv2, error)

func (InfluxDBv2) Add added in v1.0.0

func (db InfluxDBv2) Add(datapoints []monitor.DeviceDataPoint) error

Jump to

Keyboard shortcuts

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