registry

package
v0.0.0-...-11fc026 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(fun function.Function)

MustRegister adds a new metric function to the global function registry.

func NewAggregate

func NewAggregate(name string, aggregator func([]float64) float64) function.MetricFunction

NewAggregate takes a named aggregating function `[float64] => float64` and makes it into a MetricFunction.

func NewFilterCount

func NewFilterCount(name string, summary func([]float64) float64, ascending bool) function.MetricFunction

NewFilterCount creates a new instance of a filtering function with count limit.

func NewFilterThreshold

func NewFilterThreshold(name string, summary func([]float64) float64, below bool) function.MetricFunction

NewFilterThreshold creates a new instance of a filtering function.

func NewOperator

func NewOperator(op string, operator func(float64, float64) float64) function.Function

NewOperator creates a new binary operator function. the binary operators display a natural join semantic.

Types

type StandardRegistry

type StandardRegistry struct {
	// contains filtered or unexported fields
}

StandardRegistry of a functions available in MQE.

func Default

func Default() StandardRegistry

func (StandardRegistry) All

func (r StandardRegistry) All() []string

func (StandardRegistry) GetFunction

func (r StandardRegistry) GetFunction(name string) (function.Function, bool)

GetFunction returns a function associated with the given name, if it exists.

func (StandardRegistry) Register

func (r StandardRegistry) Register(fun function.Function) error

Register a new function into the registry.

Jump to

Keyboard shortcuts

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