json

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: BSD-2-Clause Imports: 6 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindEncoder

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

FindEncoder converts matches to JSON data

func InfoDecoder

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

InfoDecoder converts JSON string to metrics info

func InfoEncoder

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

InfoEncoder converts acquired info data to JSON string

func RenderDecoder

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

RenderDecoder converts JSON string to metrics data

func RenderEncoder

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

RenderEncoder converts metrics data to JSON format

Types

This section is empty.

Jump to

Keyboard shortcuts

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