jsonstream

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Available is true if the code is compiled in
	Available = false
)

Variables

View Source
var (
	// ErrItemTooBig is returned when a item alone exceeds maximum payload size
	ErrItemTooBig = errors.New("item alone exceeds maximum payload size")
)

Functions

func Payloads

Payloads serializes a metadata payload and sends it to the forwarder

Types

type OnErrItemTooBigPolicy

type OnErrItemTooBigPolicy int

OnErrItemTooBigPolicy defines the behavior when OnErrItemTooBig occurs.

const (
	// DropItemOnErrItemTooBig when founding an ErrItemTooBig, skips the error and continue
	DropItemOnErrItemTooBig OnErrItemTooBigPolicy = iota

	// FailOnErrItemTooBig when founding an ErrItemTooBig, returns the error and stop
	FailOnErrItemTooBig
)

type PayloadBuilder

type PayloadBuilder struct {
}

PayloadBuilder is not implemented when zlib is not available.

func NewPayloadBuilder

func NewPayloadBuilder() *PayloadBuilder

NewPayloadBuilder is not implemented when zlib is not available.

func (*PayloadBuilder) BuildWithOnErrItemTooBigPolicy

BuildWithOnErrItemTooBigPolicy is not implemented when zlib is not available.

Jump to

Keyboard shortcuts

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