Discover Packages
github.com/graphite-ng/carbon-relay-ng
rewriter
package
Version:
v0.12.0
Opens a new window with list of versions in this module.
Published: Sep 18, 2019
License: BSD-2-Clause-Views
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type RW struct {
Old string `json:"old"`
New string `json:"new"`
Not string `json:"not"`
Max int `json:"max"`
}
RW is a rewriter
NewFromByte creates a rewriter that will rewrite old to new, up to max times
for regex, max must be -1
Do executes the rewriting of the metric line
note: it allocates a new one, it would be better to replace in place.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.