timescale

package
v0.0.0-...-4f99e4d Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PM100sRow

type PM100sRow struct {
	//lint:ignore U1000 because it's needed for pgx.RowToStructByName
	Avg_pm100s float64
}

type PM25sRow

type PM25sRow struct {
	//lint:ignore U1000 because it's needed for pgx.RowToStructByName
	Avg_pm25s float64
}

type TimescaleClient

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

func InitTimescale

func InitTimescale(ctx context.Context, dsn string) (*TimescaleClient, func(), error)

func (*TimescaleClient) Close

func (tc *TimescaleClient) Close()

func (*TimescaleClient) GetPM100S

func (tc *TimescaleClient) GetPM100S(ctx context.Context) (float64, error)

func (*TimescaleClient) GetPM25S

func (tc *TimescaleClient) GetPM25S(ctx context.Context) (float64, error)

Jump to

Keyboard shortcuts

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