stream

package
v0.0.0-...-44638ef Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	// ErrPayloadFull is returned when the payload buffer is full
	ErrPayloadFull = errors.New("reached maximum payload size")

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

Functions

This section is empty.

Types

type Compressor

type Compressor struct{}

Compressor is not implemented

func NewCompressor

func NewCompressor(input, output *bytes.Buffer, header, footer []byte, separator []byte) (*Compressor, error)

NewCompressor not implemented

func (*Compressor) AddItem

func (c *Compressor) AddItem(data []byte) error

AddItem not implemented

func (*Compressor) Close

func (c *Compressor) Close() ([]byte, error)

Close not implemented

type JSONPayloadBuilder

type JSONPayloadBuilder struct {
}

JSONPayloadBuilder is not implemented when zlib is not available.

func NewJSONPayloadBuilder

func NewJSONPayloadBuilder(shareAndLockBuffers bool) *JSONPayloadBuilder

NewJSONPayloadBuilder is not implemented when zlib is not available.

func (*JSONPayloadBuilder) BuildWithOnErrItemTooBigPolicy

BuildWithOnErrItemTooBigPolicy is not implemented when zlib is not available.

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
)

Jump to

Keyboard shortcuts

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