internal

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE = "influxdb"

Variables

This section is empty.

Functions

func Close

func Close() error

func Open

func Open() error

func Startup

func Startup() error

func Write

func Write(metric, id string, values map[string]interface{}, tm int64) error

Types

type Device

type Device struct {
	Id        string `json:"id" xorm:"pk"`
	ProductId string `json:"product_id" xorm:"index"`
}

type Point

type Point struct {
	Value any   `json:"value"`
	Time  int64 `json:"time"`
}

func Query

func Query(metric, id string, field string, start, end, window, method string) ([]*Point, error)

Jump to

Keyboard shortcuts

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