json

package
Version: v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONSerializer

type JSONSerializer struct {
	// contains filtered or unexported fields
}

func New

func New(prettyPrint bool) *JSONSerializer

func (*JSONSerializer) Counter

func (js *JSONSerializer) Counter(m *measurements.Counter) ([]byte, error)

func (*JSONSerializer) Gauge

func (js *JSONSerializer) Gauge(m *measurements.Gauge) ([]byte, error)

func (*JSONSerializer) Poly

func (js *JSONSerializer) Poly(m *measurements.Poly) ([]byte, error)

func (*JSONSerializer) Timer

func (js *JSONSerializer) Timer(m *measurements.Timer) ([]byte, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL