dataset

package
v0.0.0-...-13b120a Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatasetFieldAndShowCartList

func DatasetFieldAndShowCartList(ref string, db *sqlx.DB) ([]string, []bool, error)

func GetLastDataSourcePointRaw

func GetLastDataSourcePointRaw(db *sqlx.DB, dataset string) (*json.RawMessage, int64, int64, error)

func GetSpecificSensorDataPoint

func GetSpecificSensorDataPoint(datasource string) (dataset_id, column int64)

GetSpecificSensorDataPoint takes a datasource string and extracts dataset id and column. e.g. d0c1 will return dataset_id=0, column=1

func ResetConnectivity

func ResetConnectivity(db *sqlx.DB) error

ResetConnectivity sets all dataset telemetry status to offline.

func SetOfflineByID

func SetOfflineByID(db *sqlx.DB, id int)

SetOfflineByID updating dataset and setting telemetry 'offline'

func SetOnlineByID

func SetOnlineByID(db *sqlx.DB, id int)

SetOnlineByID updating dataset and setting telemetry 'online'

Types

This section is empty.

Jump to

Keyboard shortcuts

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