timescale

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPErrorCode

func GetHTTPErrorCode(err error) int

Types

type Wrapper

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

func NewWrapper

func NewWrapper(ctx context.Context, wg *sync.WaitGroup, config configuration.Config) (wrapper *Wrapper, err error)

func (*Wrapper) ExecuteQueries

func (wrapper *Wrapper) ExecuteQueries(queries []string) (res [][][]interface{}, err error)

func (*Wrapper) ExecuteQuery

func (wrapper *Wrapper) ExecuteQuery(query string) (res [][]interface{}, err error)

func (*Wrapper) GenerateQueries

func (wrapper *Wrapper) GenerateQueries(elements []model.QueriesRequestElement, userId string) (queries []string, err error)

func (*Wrapper) GetDataAvailability

func (wrapper *Wrapper) GetDataAvailability(deviceId string) (res []model.DataAvailabilityResponseElement, err error)

func (*Wrapper) GetDeviceUsage

func (wrapper *Wrapper) GetDeviceUsage(deviceIds []string) (res []model.DeviceUsage, err error)

Jump to

Keyboard shortcuts

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