api

package
v0.0.0-...-2f9bd9a Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(db *minitsdb.Database, conf Config, shutdown chan struct{})

Types

type Config

type Config struct {
	Address      string
	ServeTimeout time.Duration

	WaitTimeout time.Duration
	MaxPoints   int64
}

type QueryParameters

type QueryParameters struct {
	Series  map[string]string
	Columns []map[string]string

	TimeFrom int64
	TimeTo   int64

	// LimitSeries is the maximum number of series returned
	LimitSeries int

	// Resolution is the smallest allowed time step between points, either Points or Resolution must be set
	Resolution int64
	// Points is the maximum number of points returned, either Points or Resolution must be set
	Points int
}

func ParseQuery

func ParseQuery(r io.Reader) (QueryParameters, error)

func (QueryParameters) Check

func (p QueryParameters) Check() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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