split

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSizeAndSerialize

func CheckSizeAndSerialize(m marshaler.Marshaler, compress bool, mType MarshalType) (bool, []byte, []byte, error)

CheckSizeAndSerialize Check the size of a payload and marshall it (optionally compress it) The dual role makes sense as you will never serialize without checking the size of the payload

func GetPayloadDrops

func GetPayloadDrops() int64

GetPayloadDrops returns the number of times we dropped some payloads because we couldn't split them.

func Payloads

func Payloads(m marshaler.Marshaler, compress bool, mType MarshalType) (forwarder.Payloads, error)

Payloads serializes a metadata payload and sends it to the forwarder

Types

type MarshalType

type MarshalType int

MarshalType is the type of marshaler to use

const (
	MarshalJSON MarshalType = iota
	Marshal
)

Enumeration of the existing marshal types

Jump to

Keyboard shortcuts

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