havingspec

package
v0.0.4-0...-a9841f4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(data []byte) (builder.HavingSpec, error)

Types

type Always

type Always struct {
	Base
}

func NewAlways

func NewAlways() *Always

type And

type And struct {
	Base
	HavingSpecs []builder.HavingSpec `json:"havingSpecs,omitempty"`
}

func NewAnd

func NewAnd() *And

func (*And) SetHavingSpecs

func (a *And) SetHavingSpecs(havingSpecs []builder.HavingSpec) *And

func (*And) UnmarshalJSON

func (a *And) UnmarshalJSON(data []byte) error

type Base

type Base struct {
	Typ builder.ComponentType `json:"type,omitempty"`
}

func (*Base) SetType

func (b *Base) SetType(typ builder.ComponentType) *Base

func (*Base) Type

func (b *Base) Type() builder.ComponentType

type DimSelector

type DimSelector struct {
	Base
	Dimension    string               `json:"dimension,omitempty"`
	Value        string               `json:"value,omitempty"`
	ExtractionFn builder.ExtractionFn `json:"extractionFn,omitempty"`
}

func NewDimSelector

func NewDimSelector() *DimSelector

func (*DimSelector) SetDimension

func (d *DimSelector) SetDimension(dimension string) *DimSelector

func (*DimSelector) SetExtractionFn

func (d *DimSelector) SetExtractionFn(extractionFn builder.ExtractionFn) *DimSelector

func (*DimSelector) SetValue

func (d *DimSelector) SetValue(value string) *DimSelector

func (*DimSelector) UnmarshalJSON

func (d *DimSelector) UnmarshalJSON(data []byte) error

type EqualTo

type EqualTo struct {
	Base
	Aggregation string  `json:"aggregation,omitempty"`
	Value       float64 `json:"value,omitempty"`
}

func NewEqualTo

func NewEqualTo() *EqualTo

func (*EqualTo) SetAggregation

func (e *EqualTo) SetAggregation(aggregation string) *EqualTo

func (*EqualTo) SetValue

func (e *EqualTo) SetValue(value float64) *EqualTo

type GreaterThan

type GreaterThan struct {
	Base
	Aggregation string  `json:"aggregation,omitempty"`
	Value       float64 `json:"value,omitempty"`
}

func NewGreaterThan

func NewGreaterThan() *GreaterThan

func (*GreaterThan) SetAggregation

func (g *GreaterThan) SetAggregation(aggregation string) *GreaterThan

func (*GreaterThan) SetValue

func (g *GreaterThan) SetValue(value float64) *GreaterThan

type LessThan

type LessThan struct {
	Base
	Aggregation string  `json:"aggregation,omitempty"`
	Value       float64 `json:"value,omitempty"`
}

func NewLessThan

func NewLessThan() *LessThan

func (*LessThan) SetAggregation

func (l *LessThan) SetAggregation(aggregation string) *LessThan

func (*LessThan) SetValue

func (l *LessThan) SetValue(value float64) *LessThan

type Never

type Never struct {
	Base
}

func NewNever

func NewNever() *Never

type Not

type Not struct {
	Base
	HavingSpec builder.HavingSpec `json:"havingSpec,omitempty"`
}

func NewNot

func NewNot() *Not

func (*Not) SetHavingSpecs

func (n *Not) SetHavingSpecs(havingSpec builder.HavingSpec) *Not

func (*Not) UnmarshalJSON

func (n *Not) UnmarshalJSON(data []byte) error

type Or

type Or struct {
	Base
	HavingSpecs []builder.HavingSpec `json:"havingSpecs,omitempty"`
}

func NewOr

func NewOr() *Or

func (*Or) SetHavingSpecs

func (o *Or) SetHavingSpecs(havingSpecs []builder.HavingSpec) *Or

func (*Or) UnmarshalJSON

func (o *Or) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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