package
0.0.0-20230215124957-e035375806f3
Repository: https://github.com/abc-arbitrage/infix.git
Documentation: pkg.go.dev
# Functions
NewExcludeFilter creates a new ExcludeFilter.
NewFileFilter creates a new FileFilter from a path.
NewFilter creates a new rule configuration based on its registration name.
NewIncludeFilter creates a new IncludeFilter.
NewMeasurementFilter creates a new MeasurementFilter.
NewPatternFilter creates a new PatternFilter with the given pattern.
NewRawSerieFilter creates a new RawSerieFilter.
NewSerieFilter creates a new SerieFilter.
NewStringFilter creates a new StringFilter.
NewWhereFilter creates a new WhereFilter based on a map of tags key, value.
RegisterFilter registers a filter with the given name and config creation callback.
Unmarshal will unmarshal a filter from a toml table.
UnmarshalConfig will unmarshal a Config (either filter.Config or rules.Config) that might contain a Filter field from a toml ast.Table.
# Structs
AlwaysFalseFilter is a Filter that is always false.
AlwaysTrueFilter is a Filter that is always true.
ExcludeFilter defines a filter to exclude a list of strings.
FileFilter defines a filter based on a file content.
FileFilterConfig represents the toml configuration for a filter based on file content.
FuncFilter is a filter based on a filtering function.
IncludeFilter defines a filter to only include a list of strings.
MeasurementFilter defines a filter restricted to measurement part of a key.
PatternFilter is a Filter based on regexp.
PatternFilterConfig represents the toml configuration of a pattern filter.
RawSerieFilter defines a filter restricted to a serie part of a key as raw bytes.
SerieFilter defines a filter restricted to the serie and field part of a key.
SerieFilterConfig represents the toml configuration of a SerieFilter.
Set defines a set of filters that must pass.
StringFilterConfig represents the toml configuration for a filter based on strings functions.
WhereFilter defines a filter to restrict keys based on tag values.
WhereFilterConfig represents toml configuration for WhereFilter.
# Interfaces
Config represents the toml configuration of a filter.
Filter defines an interface to filter and skip keys when applying rules.
ManualConfig represents the toml configuration of a filter that must be unmarshaled manually.
# Type aliases
NewFilterFunc represents a callback to register a filter's configuration to be able to load it from toml.