parse

package
v0.17.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL