Documentation ¶ Index ¶ func Msgpack(body []byte) ([]*points.Points, error) func Pickle(body []byte) ([]*points.Points, error) func Plain(body []byte) ([]*points.Points, error) func PlainLine(p []byte) ([]byte, float64, int64, error) func Protobuf(body []byte) ([]*points.Points, error) type Datapoint Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Msgpack ¶ added in v0.16.0 func Msgpack(body []byte) ([]*points.Points, error) Msgpack is used to unpack metrics produced by carbon-relay-ng func Pickle ¶ func Pickle(body []byte) ([]*points.Points, error) func Plain ¶ func Plain(body []byte) ([]*points.Points, error) func PlainLine ¶ func PlainLine(p []byte) ([]byte, float64, int64, error) func Protobuf ¶ func Protobuf(body []byte) ([]*points.Points, error) Types ¶ type Datapoint ¶ added in v0.16.0 type Datapoint struct { Name string `json:"Name"` Value float64 `json:"Value"` Time int64 `json:"Time"` } Datapoint loads a msgpack data Source Files ¶ View all Source files msgpack.go pickle.go plain.go protobuf.go Click to show internal directories. Click to hide internal directories.