carbonapi_v2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package carbonapi_v2 defines encoding and decoding methods for Find, Info and Render responses.

It uses a modified version 2 of the carbonapi protocol buffer schema that is compatible with the original one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDecoder

func FindDecoder(blob []byte) (types.Matches, error)

func FindEncoder

func FindEncoder(matches types.Matches) ([]byte, error)

func InfoEncoder

func InfoEncoder(infos []types.Info) ([]byte, error)

func IsInfoResponse

func IsInfoResponse(blob []byte) (bool, error)

func MultiInfoDecoder

func MultiInfoDecoder(blob []byte) ([]types.Info, error)

func RenderDecoder

func RenderDecoder(blob []byte) ([]types.Metric, error)

func RenderEncoder

func RenderEncoder(metrics []types.Metric) ([]byte, error)

func SingleInfoDecoder

func SingleInfoDecoder(blob []byte, host string) ([]types.Info, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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