timescale

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetColumnLastResponse added in v1.0.2

type GetColumnLastResponse struct {
	Time time.Time `json:"time"`
	Last float64   `json:"last"`
}

type GetColumnLastTemplateParameters added in v1.0.2

type GetColumnLastTemplateParameters struct {
	ColumnName string
	TableName  string
}

func (*GetColumnLastTemplateParameters) Hash added in v1.0.2

func (*GetColumnLastTemplateParameters) String added in v1.0.3

type GetColumnResponse added in v1.0.2

type GetColumnResponse struct {
	Time time.Time `json:"time"`
	Min  float64   `json:"min"`
	Max  float64   `json:"max"`
	Avg  float64   `json:"avg"`
}

type GetColumnTemplateParameters added in v1.0.2

type GetColumnTemplateParameters struct {
	ColumnName       string
	TimeBucket       string
	LookbackInterval string
	TableName        string
}

func (*GetColumnTemplateParameters) Hash added in v1.0.2

func (*GetColumnTemplateParameters) String added in v1.0.2

func (t *GetColumnTemplateParameters) String() string

type TimescaleClient

type TimescaleClient struct {
	Pool *pgxpool.Pool
	Dfly *dragonfly.DragonflyClient
	// contains filtered or unexported fields
}

func NewTimescaleClient

func NewTimescaleClient(ctx context.Context, connString string, opts ...TimescaleClientOption) (*TimescaleClient, error)

func (*TimescaleClient) Close

func (c *TimescaleClient) Close()

func (*TimescaleClient) GetColumn

func (*TimescaleClient) GetColumnLast added in v1.0.2

type TimescaleClientOption

type TimescaleClientOption func(*TimescaleClient)

Jump to

Keyboard shortcuts

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