marshaler

package
v0.0.0-...-3dd6856 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaler

type Marshaler interface {
	MarshalJSON() ([]byte, error)
	Marshal() ([]byte, error)
	SplitPayload(int) ([]Marshaler, error)
}

Marshaler is an interface for metrics that are able to serialize themselves to JSON and protobuf

type StreamJSONMarshaler

type StreamJSONMarshaler interface {
	Marshaler
	JSONHeader() []byte
	Len() int
	JSONItem(i int) ([]byte, error)
	DescribeItem(i int) string
	JSONFooter() []byte
}

StreamJSONMarshaler is an interface for metrics that are able to serialize themselves in a stream

Jump to

Keyboard shortcuts

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