history

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(h Historian)

func Registered

func Registered() bool

func Write

func Write(table, id string, timestamp int64, values map[string]any) error

Types

type Historian

type Historian interface {
	Write(table, id string, timestamp int64, values map[string]any) error

	Query(table, id, name, start, end, window, method string) ([]Point, error)
}

type Point

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

func Query

func Query(table, id, name, 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