topnmetric

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.TopNMetric, error)

Types

type AlphaNumeric

type AlphaNumeric struct {
	Base
	PreviousStop string `json:"previousStop,omitempty"`
}

func NewAlphaNumeric

func NewAlphaNumeric() *AlphaNumeric

func (*AlphaNumeric) SetPreviousStop

func (a *AlphaNumeric) SetPreviousStop(previousStop string) *AlphaNumeric

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 Dimension

type Dimension struct {
	Base
	PreviousStop string                 `json:"previousStop,omitempty"`
	Ordering     types.StringComparator `json:"ordering,omitempty"`
}

func NewDimension

func NewDimension() *Dimension

func (*Dimension) SetOrdering

func (d *Dimension) SetOrdering(ordering types.StringComparator) *Dimension

func (*Dimension) SetPreviousStop

func (d *Dimension) SetPreviousStop(previousStop string) *Dimension

type Inverted

type Inverted struct {
	Base
	Metric builder.TopNMetric `json:"metric,omitempty"`
}

func NewInverted

func NewInverted() *Inverted

func (*Inverted) SetMetric

func (i *Inverted) SetMetric(metric builder.TopNMetric) *Inverted

func (*Inverted) UnmarshalJSON

func (i *Inverted) UnmarshalJSON(data []byte) error

type Lexicographic

type Lexicographic struct {
	Base
	PreviousStop string `json:"previousStop,omitempty"`
}

func NewLexicographic

func NewLexicographic() *Lexicographic

func (*Lexicographic) SetPreviousStop

func (l *Lexicographic) SetPreviousStop(previousStop string) *Lexicographic

type Numeric

type Numeric struct {
	Base
	Metric string `json:"metric,omitempty"`
}

func NewNumeric

func NewNumeric() *Numeric

func (*Numeric) SetMetric

func (n *Numeric) SetMetric(metric string) *Numeric

Jump to

Keyboard shortcuts

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