timescale

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryInterface

type FactoryInterface func(ctx context.Context, config util.Config) (Interface, error)

type Interface

type Interface interface {
	Query(token string, request []messages.TimescaleRequest, timeout time.Duration) (result []messages.TimescaleResponse, err error)
}

func Factory

func Factory(ctx context.Context, config util.Config) (Interface, error)

type QueriesRequestElement

type QueriesRequestElement struct {
	DeviceId  string
	ServiceId string
	Limit     int
	Columns   []QueriesRequestElementColumn
}

type QueriesRequestElementColumn

type QueriesRequestElementColumn struct {
	Name string
}

type Timescale

type Timescale struct {
	TimescaleWrapperUrl string
}

func NewTimescale

func NewTimescale(timescaleWrapperUrl string) *Timescale

func (*Timescale) Query

func (this *Timescale) Query(token string, request []messages.TimescaleRequest, timeout time.Duration) (result []messages.TimescaleResponse, err error)

type TimescaleQuery

type TimescaleQuery = []QueriesRequestElement

func CastRequest

func CastRequest(request []messages.TimescaleRequest) (result TimescaleQuery)

type TimescaleQueryResponse

type TimescaleQueryResponse = [][][]interface{} //[query-index][0][column-index + 1]

Jump to

Keyboard shortcuts

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