json

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	Start     string              `json:"start"`
	End       string              `json:"end"`
	Timestamp string              `json:"timestamp"`
	Latest    string              `json:"latest"`
	Filter    map[string]string   `json:"filter"`
	Match     map[string]string   `json:"match"`
	Field     map[string]string   `json:"field"`
	GField    map[string]string   `json:"gfield"`
	In        map[string][]string `json:"in"`
	Group     []string            `json:"group"`
	Sort      []string            `json:"sort"`
	Range     []RangeAgg          `json:"range"`
	Limit     []int               `json:"limit"`
	Debug     bool                `json:"debug"`
	Points    float64             `json:"points"`
	Align     string              `json:"align"`
	Function  map[string][]string `json:"function"`
}

Form .

type Parser

type Parser struct{}

Parser .

func (*Parser) Parse

func (p *Parser) Parse(statement string) (*queryv1.Request, error)

Parse .

type RangeAgg

type RangeAgg struct {
	Name   string `json:"name"`
	Ranges []struct {
		Form float64 `json:"form"`
		To   float64 `json:"to"`
	} `json:"ranges"`
	Split     int     `json:"split"`
	RangeSize float64 `json:"rangesize"`
}

RangeAgg .

Jump to

Keyboard shortcuts

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