package
0.0.0-20191121140916-9649366ff4b2
Repository: https://github.com/chronosphereiox/m3.git
Documentation: pkg.go.dev
# Functions
NewScanner creates a new carbon scanner.
Parse parses a carbon line into the corresponding parts.
ParseAndAppendPacket does the same thing as parse packet, but it allows the caller to pass in the []Metric to facilitate pooling.
ParseName parses out the name portion of a string and returns the name and the remaining portion of the line.
ParsePacket parses a carbon packet and returns the metrics and number of malformed lines.
ParseRemainder parses a line's components (name and remainder) and returns all but the name and returns the timestamp of the metric, its value, the time it was received and any error encountered.