having

package
v0.0.0-...-23e8124 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndHavingSpec

type AndHavingSpec struct {
	HavingType  HavingType `json:"type"`
	HavingSpecs []Having   `json:"havingSpecs"`
}

type DimSelectorHavingSpec

type DimSelectorHavingSpec struct {
	HavingType HavingType `json:"type"`
	Dimension  string     `json:"dimension"`
	Value      int64      `json:"value"`
}

type FilterHavingSpec

type FilterHavingSpec struct {
	HavingType HavingType    `json:"type"`
	Filter     filter.Filter `json:"filter"`
}

type Having

type Having interface {
}

type HavingType

type HavingType int
const (
	Filter HavingType = iota
	EqualTo
	GreaterThan
	LessThan
	DimSelector
	And
	Or
	Not
)

func (HavingType) MarshalJSON

func (h HavingType) MarshalJSON() ([]byte, error)

func (HavingType) Name

func (h HavingType) Name() string

func (HavingType) Ordinal

func (h HavingType) Ordinal() int

func (HavingType) Values

func (h HavingType) Values() *[]string

type NotHavingSpec

type NotHavingSpec struct {
	HavingType HavingType `json:"type"`
	HavingSpec Having     `json:"havingSpec"`
}

type NumericHavingSpec

type NumericHavingSpec struct {
	HavingType  HavingType `json:"type"`
	Aggregation string     `json:"aggregation"`
	Value       int64      `json:"value"`
}

equalTo, lessThan, greaterThan

type OrHavingSpec

type OrHavingSpec struct {
	HavingType  HavingType `json:"type"`
	HavingSpecs []Having   `json:"havingSpecs"`
}

Jump to

Keyboard shortcuts

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