Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metric ¶
Metric represents a carbon metric.
func ParseAndAppendPacket ¶
ParseAndAppendPacket does the same thing as parse packet, but it allows the caller to pass in the []Metric to facilitate pooling.
func ParsePacket ¶
ParsePacket parses a carbon packet and returns the metrics and number of malformed lines.
type Scanner ¶
type Scanner struct { // The number of malformed metrics encountered. MalformedCount int // contains filtered or unexported fields }
A Scanner is used to scan carbon lines from an underlying io.Reader.
func NewScanner ¶
func NewScanner(r io.Reader, iOpts instrument.Options) *Scanner
NewScanner creates a new carbon scanner.
Click to show internal directories.
Click to hide internal directories.