streaming

package
v0.3.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemplateQuery

func TemplateQuery(temp string, data any) (string, error)

Types

type Connector

type Connector interface {
	CreateMeter(ctx context.Context, namespace string, meter *models.Meter) error
	DeleteMeter(ctx context.Context, namespace string, meterSlug string) error
	QueryMeter(ctx context.Context, namespace string, meterSlug string, params *QueryParams) ([]*models.MeterValue, *models.WindowSize, error)
}

type QueryParams

type QueryParams struct {
	From        *time.Time
	To          *time.Time
	Subject     *string
	GroupBy     *[]string
	Aggregation *models.MeterAggregation
	WindowSize  *models.WindowSize
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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