Documentation ¶
Overview ¶
Package filters provides API to implement goma filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("filter not found")
)
Errors for filters.
Functions ¶
func Register ¶
func Register(name string, ctor Constructor)
Register registers a constructor of a kind of filters.
Types ¶
type Constructor ¶
Constructor is a function to create a filter.
params are configuration options for the probe.
type Filter ¶
type Filter interface { // Init is called when goma starts monitoring. Init() // Put receives a return value from a probe, and returns a filtered value. Put(f float64) float64 // String returns a descriptive string for this filter. String() string }
Filter is the interface for filters.
Click to show internal directories.
Click to hide internal directories.