queries

package
v2.0.0-beta.13 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LiteralJSON

func LiteralJSON(lit string, litType string) ([]byte, error)

func MarshalJSON

func MarshalJSON(v interface{}) ([]byte, error)

Types

type BinaryExpr

type BinaryExpr struct {
	*influxql.BinaryExpr
}

func (*BinaryExpr) MarshalJSON

func (b *BinaryExpr) MarshalJSON() ([]byte, error)

type BooleanLiteral

type BooleanLiteral struct {
	*influxql.BooleanLiteral
}

func (*BooleanLiteral) MarshalJSON

func (b *BooleanLiteral) MarshalJSON() ([]byte, error)

type Call

type Call struct {
	*influxql.Call
}

func (*Call) MarshalJSON

func (c *Call) MarshalJSON() ([]byte, error)

type Condition

type Condition struct {
	influxql.Expr
}

func (*Condition) MarshalJSON

func (c *Condition) MarshalJSON() ([]byte, error)

type Dimension

type Dimension struct {
	*influxql.Dimension
}

func (*Dimension) MarshalJSON

func (d *Dimension) MarshalJSON() ([]byte, error)

type Dimensions

type Dimensions struct {
	influxql.Dimensions
	FillOption influxql.FillOption
	FillValue  interface{}
}

func (*Dimensions) MarshalJSON

func (d *Dimensions) MarshalJSON() ([]byte, error)

type Distinct

type Distinct struct {
	*influxql.Distinct
}

func (*Distinct) MarshalJSON

func (d *Distinct) MarshalJSON() ([]byte, error)

type DurationLiteral

type DurationLiteral struct {
	*influxql.DurationLiteral
}

func (*DurationLiteral) MarshalJSON

func (d *DurationLiteral) MarshalJSON() ([]byte, error)

type Field

type Field struct {
	*influxql.Field
}

func (*Field) MarshalJSON

func (f *Field) MarshalJSON() ([]byte, error)

type Fields

type Fields struct {
	influxql.Fields
}

func (*Fields) MarshalJSON

func (f *Fields) MarshalJSON() ([]byte, error)

type Fill

type Fill struct {
	Option influxql.FillOption
	Value  interface{}
}

func (*Fill) MarshalJSON

func (f *Fill) MarshalJSON() ([]byte, error)

type IntegerLiteral

type IntegerLiteral struct {
	*influxql.IntegerLiteral
}

func (*IntegerLiteral) MarshalJSON

func (i *IntegerLiteral) MarshalJSON() ([]byte, error)

type Limits

type Limits struct {
	Limit   int `json:"limit,omitempty"`
	Offset  int `json:"offset,omitempty"`
	SLimit  int `json:"slimit,omitempty"`
	SOffset int `json:"soffset,omitempty"`
}

type ListLiteral

type ListLiteral struct {
	*influxql.ListLiteral
}

TODO: I don't think list is right

func (*ListLiteral) MarshalJSON

func (l *ListLiteral) MarshalJSON() ([]byte, error)

type Measurement

type Measurement struct {
	Database        string         `json:"database"`
	RetentionPolicy string         `json:"retentionPolicy"`
	Name            string         `json:"name,omitempty"`
	Regex           *regexp.Regexp `json:"regex,omitempty"`
	Type            string         `json:"type"`
}

type NumberLiteral

type NumberLiteral struct {
	*influxql.NumberLiteral
}

func (*NumberLiteral) MarshalJSON

func (n *NumberLiteral) MarshalJSON() ([]byte, error)

type ParenExpr

type ParenExpr struct {
	*influxql.ParenExpr
}

func (*ParenExpr) MarshalJSON

func (p *ParenExpr) MarshalJSON() ([]byte, error)

type RegexLiteral

type RegexLiteral struct {
	*influxql.RegexLiteral
}

func (*RegexLiteral) MarshalJSON

func (r *RegexLiteral) MarshalJSON() ([]byte, error)

type SelectStatement

type SelectStatement struct {
	*influxql.SelectStatement
}

func ParseSelect

func ParseSelect(q string) (*SelectStatement, error)

func (*SelectStatement) MarshalJSON

func (s *SelectStatement) MarshalJSON() ([]byte, error)

type SortField

type SortField struct {
	*influxql.SortField
}

func (*SortField) MarshalJSON

func (s *SortField) MarshalJSON() ([]byte, error)

type SortFields

type SortFields struct {
	influxql.SortFields
}

func (*SortFields) MarshalJSON

func (f *SortFields) MarshalJSON() ([]byte, error)

type Source

type Source struct {
	influxql.Source
}

func (*Source) MarshalJSON

func (s *Source) MarshalJSON() ([]byte, error)

type Sources

type Sources struct {
	influxql.Sources
}

func (*Sources) MarshalJSON

func (s *Sources) MarshalJSON() ([]byte, error)

TODO: Handle subqueries

type StringLiteral

type StringLiteral struct {
	*influxql.StringLiteral
}

func (*StringLiteral) MarshalJSON

func (s *StringLiteral) MarshalJSON() ([]byte, error)

type TimeLiteral

type TimeLiteral struct {
	*influxql.TimeLiteral
}

func (*TimeLiteral) MarshalJSON

func (t *TimeLiteral) MarshalJSON() ([]byte, error)

type VarRef

type VarRef struct {
	*influxql.VarRef
}

func (*VarRef) MarshalJSON

func (v *VarRef) MarshalJSON() ([]byte, error)

type Wildcard

type Wildcard struct {
	*influxql.Wildcard
}

func (*Wildcard) MarshalJSON

func (w *Wildcard) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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