package
0.0.0-20230215124957-e035375806f3
Repository: https://github.com/abc-arbitrage/infix.git
Documentation: pkg.go.dev
# Functions
EnsureValueType casts a Value to a given data type.
LoadConfig will load rules from a TOML configuration file.
NewChainingSet creates a new chaining set.
No description provided by the author
NewDropMeasurement creates a new DropMeasurementRule to drop a single measurement.
NewDropMeasurementWithFilter creates a new DropMeasurementRule to rename measurements that uses the given filter.
NewDropMeasurementWithPattern creates a new DropMeasurementRule to rename measurements that match the given pattern.
NewDropSerieRule creates a new DropSerieRule.
NewOldSerieRule creates a new OldSerieRule.
NewRenameField creates a new RenameFiled rule with given measurement and filter filters, will renamed fields according to renameFn.
NewRenameMeasurement creates a new RenameMeasurementRule to rename a single measurement.
NewRenameMeasurementWithFilter creates a new RenameMeasurementRule to rename measurements that uses the given filter.
NewRenameMeasurementWithPattern creates a new RenameMeasurementRule to rename measurements that match the given pattern.
NewRenameTagRule creates a new RenameTagRule.
NewRule creates a new rule configuration based on its registration name.
NewShowFieldKeyMultipleTypes creates an ShowFieldKeyMultipleTypesRule.
NewUpdateFieldType creates an UpdateFieldTypeRule.
NewUpdateTagValueRule creates a new UpdateTagValueRule.
PrintList print a list of registered rules with a sample config.
RegisterRule registers a rule with the given name and config creation callback.
RenameFnFromFilter returns a RenameFn that expands captured variables from a pattern if the given filter is a PatternFilter.
# Constants
ReadOnly is a flag for rules that should be readonly only.
Standard is a flag for standard rules.
TSMReadOnly is a flag for rules that should be read only for TSM files.
TSMWriteOnly is a flag for rules that should only write TSM files.
WALReadOnly is a flag for rules that should be read only for WAL files.
WALWriteOnly is a flag for rules that should only write WAL files.
# Variables
ErrMissingFieldFilter is raised when a config is missing a field filter.
ErrMissingFromFilter is raised when a config is missing from filter.
ErrMissingMeasurementFilter is raised when a config is missing a measurement filter.
ErrMissingRenameTo is raised when a config is missing to.
ErrMissingTagFilter is raised when a config is missing a tag filter.
ErrMissingTagKeyFilter is raised when a config is missing a tag key filter.
ErrMissingTagValueFilter is raised when a config is missing a tag value filter.
ErrUnknownType is raised when failing to parse an InfluxQL Type.
# Structs
ChainingSet is a set of rules that are applied in chain.
No description provided by the author
No description provided by the author
DropMeasurementRule is a rule to drop measurements.
DropMeasurementRuleConfig represents the toml configuration for DropMeasurementRule.
DropSerieRule defines a rule to drop series.
DropSerieRuleConfig represents the toml configuration for DropSerieRule.
OldSerieRule defines a read-only rule to retrieve series that are oldest than a given timestamp.
OldSerieRuleConfig represents the toml configuration for OldSerieRule.
RenameFieldRule is a rule to rename a field from a given measurement.
RenameFieldRuleConfig represents toml configuration a RenameField rule.
RenameMeasurementRule represents a rule to rename a measurement.
RenameMeasurementRuleConfig represents the toml configuration for RenameMeasurementRule.
RenameTagRule is a rule to rename a tag key.
RenameTagRuleConfig represents the toml configuration of RenameTag rule.
ShowFieldKeyMultipleTypesConfig represents the toml configuration for ShowFieldKeyMultipleTypesRule.
ShowFieldKeyMultipleTypesRule is a rule to show fields on measurements that have different data type along shards.
UpdateFieldTypeRule will update a field type for a given measurement.
UpdateFieldTypeRuleConfig represents the toml configuration for UpdateFieldTypeRule.
UpdateTagValueRule defines a rule to update the value of a tag for a given measurement.
UpdateTagValueRuleConfig represents the toml configuration of UpdateTagValue rule.
# Type aliases
NewRuleFunc represents a callback to register a rule's configuration to be able to load it from toml.
RenameFn defines a function to rename a measurement or field.